Commit f4bf52a
committed
fix(tests): address review comments on TestFindNS
Use a dummy path instead of a real proc path in the "namespace type
missing from spec" case, merge the assert.False call and its message
onto one line, and drop the unnecessary file creation in the "existing
path" case since t.TempDir() already returns a real directory. Also
fixes the gosec G306 warning on the removed WriteFile call.
Signed-off-by: Anand-240 <anandprakashsrivastava68@gmail.com>1 parent 2385fe8 commit f4bf52a
1 file changed
Lines changed: 3 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
| |||
252 | 251 | | |
253 | 252 | | |
254 | 253 | | |
255 | | - | |
| 254 | + | |
256 | 255 | | |
257 | 256 | | |
258 | 257 | | |
259 | 258 | | |
260 | | - | |
261 | | - | |
| 259 | + | |
262 | 260 | | |
263 | 261 | | |
264 | 262 | | |
| |||
273 | 271 | | |
274 | 272 | | |
275 | 273 | | |
276 | | - | |
277 | | - | |
| 274 | + | |
278 | 275 | | |
279 | 276 | | |
280 | 277 | | |
| |||
0 commit comments