Skip to content

Commit

Permalink
fix: mocked api version in not-a-repo unit test
Browse files Browse the repository at this point in the history
This fixes a failing unit test caused by a mis-match in mocked API version.
  • Loading branch information
cmars committed Jun 5, 2024
1 parent 0532b0c commit c672f21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/analysis/analysis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ func TestAnalysis_CreateWorkspace_NotARepository(t *testing.T) {
mockHTTPClient.EXPECT().Do(
mock.MatchedBy(func(i interface{}) bool {
req := i.(*http.Request)
return req.URL.String() == "http://localhost/hidden/orgs/4a72d1db-b465-4764-99e1-ecedad03b06a/workspaces?version=2024-03-12~experimental" &&
return req.URL.String() == "http://localhost/hidden/orgs/4a72d1db-b465-4764-99e1-ecedad03b06a/workspaces?version=2024-05-14~experimental" &&
req.Method == "POST" &&
req.Header.Get("Content-Type") == "application/vnd.api+json" &&
req.Header.Get("Snyk-Request-Id") == "b372d1db-b465-4764-99e1-ecedad03b06a" &&
Expand Down

0 comments on commit c672f21

Please sign in to comment.