Skip to content

Commit 1cde7f4

Browse files
authored
test: update case to reflect recent config parsing changes (google#1267)
This behaviour changed as a result of both google#1252 (which makes `LoadPath` no longer a recognized config key) and google#1249 (which causes the scanner to error when a config has an unknown key), but they didn't directly conflict with each other so got landed on `main` without this being picked up (fwiw I'm not worried about this being a reoccurring thing that's worth guarding or preventing somehow as its usually pretty rare 🤷)
1 parent 75a5eab commit 1cde7f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/config/config_internal_test.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,9 @@ func Test_tryLoadConfig(t *testing.T) {
163163
configPath: "./fixtures/testdatainner/osv-scanner-load-path.toml",
164164
},
165165
want: Config{
166-
LoadPath: "./fixtures/testdatainner/osv-scanner-load-path.toml",
166+
LoadPath: "",
167167
},
168-
wantErr: false,
168+
wantErr: true,
169169
},
170170
}
171171
for _, tt := range tests {

0 commit comments

Comments
 (0)