Skip to content

Commit c672f21

Browse files
committed
fix: mocked api version in not-a-repo unit test
This fixes a failing unit test caused by a mis-match in mocked API version.
1 parent 0532b0c commit c672f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/analysis/analysis_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ func TestAnalysis_CreateWorkspace_NotARepository(t *testing.T) {
117117
mockHTTPClient.EXPECT().Do(
118118
mock.MatchedBy(func(i interface{}) bool {
119119
req := i.(*http.Request)
120-
return req.URL.String() == "http://localhost/hidden/orgs/4a72d1db-b465-4764-99e1-ecedad03b06a/workspaces?version=2024-03-12~experimental" &&
120+
return req.URL.String() == "http://localhost/hidden/orgs/4a72d1db-b465-4764-99e1-ecedad03b06a/workspaces?version=2024-05-14~experimental" &&
121121
req.Method == "POST" &&
122122
req.Header.Get("Content-Type") == "application/vnd.api+json" &&
123123
req.Header.Get("Snyk-Request-Id") == "b372d1db-b465-4764-99e1-ecedad03b06a" &&

0 commit comments

Comments
 (0)