Commit 890758b
authored
fix(test): Fix test about default storage type for DefaultStorageMediaProviderTest (#2419)
### What changes were proposed in this pull request?
This part of testStorageProvider should test the default storage media for a non-existent directory. But 47cac39 changed the behavior of getStorageMediaFor, now it checks the parent directory (recursively) so for /path/to/base/dir it will end up checking / which is existent. With this change it will check path which is missing, so it will really check the default value.
### Why are the changes needed?
### Does this PR introduce any user-facing change?
No.
### How was this patch tested?
UT1 parent 9007bed commit 890758b
2 files changed
Lines changed: 14 additions & 4 deletions
File tree
- storage/src
- main/java/org/apache/uniffle/storage/common
- test/java/org/apache/uniffle/storage/common
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
| |||
40 | 41 | | |
41 | 42 | | |
42 | 43 | | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
| |||
64 | 66 | | |
65 | 67 | | |
66 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
67 | 76 | | |
68 | 77 | | |
69 | 78 | | |
| |||
81 | 90 | | |
82 | 91 | | |
83 | 92 | | |
84 | | - | |
85 | | - | |
| 93 | + | |
| 94 | + | |
86 | 95 | | |
87 | 96 | | |
88 | 97 | | |
| |||
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
| |||
0 commit comments