Skip to content

Commit

Permalink
test: update case to reflect recent config parsing changes (#1267)
Browse files Browse the repository at this point in the history
This behaviour changed as a result of both #1252 (which makes `LoadPath`
no longer a recognized config key) and #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 🤷)
  • Loading branch information
G-Rath authored Sep 24, 2024
1 parent 75a5eab commit 1cde7f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/config/config_internal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,9 @@ func Test_tryLoadConfig(t *testing.T) {
configPath: "./fixtures/testdatainner/osv-scanner-load-path.toml",
},
want: Config{
LoadPath: "./fixtures/testdatainner/osv-scanner-load-path.toml",
LoadPath: "",
},
wantErr: false,
wantErr: true,
},
}
for _, tt := range tests {
Expand Down

0 comments on commit 1cde7f4

Please sign in to comment.