-
Notifications
You must be signed in to change notification settings - Fork 115
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade connect dependency to allow market authorities to remove markets #2615
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -155,7 +155,7 @@ func TestGetMarketConfigCopies(t *testing.T) { | |||||||||||||
require.Error(t, err, tc.ExpectedError.Error()) | ||||||||||||||
} else { | ||||||||||||||
// Validate that this method returns a copy and not the original. | ||||||||||||||
require.NotSame(t, tc.Expected, actual) | ||||||||||||||
require.NotSame(t, &tc.Expected, &actual) | ||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix incorrect pointer comparison in slice copy test. The current assertion To properly test that each market config is a copy, replace the assertion with: - require.NotSame(t, &tc.Expected, &actual)
+ require.Equal(t, len(tc.Expected), len(actual))
+ for i := range tc.Expected {
+ require.NotSame(t, tc.Expected[i], actual[i])
+ require.Equal(t, tc.Expected[i], actual[i])
+ } This change will:
📝 Committable suggestion
Suggested change
|
||||||||||||||
require.Equal(t, tc.Expected, actual) | ||||||||||||||
require.NoError(t, err) | ||||||||||||||
} | ||||||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Critical: Invalid Go version specified
The Dockerfile references
golang:1.23.1-alpine
, but this is an invalid Go version. Go follows semantic versioning, and version 1.23 does not exist. The latest stable version is in the 1.22.x series.Apply this diff to use the correct Go version:
And update the corresponding FROM statements accordingly.
Also applies to: 12-12, 49-49