Skip to content

Commit

Permalink
Updated the test assertion to match the actual error message "connect…
Browse files Browse the repository at this point in the history
…ex: No connection" on Windows. This ensures the test accurately reflects the platform-specific error output.

Signed-off-by: Alberto Ricart <[email protected]>
  • Loading branch information
aricart committed Jan 5, 2025
1 parent 06aed31 commit 90628a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cmd/push_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,8 @@ func Test_SyncNoServer(t *testing.T) {
out, err := ExecuteCmd(createPushCmd(), "--account", "A")
require.Error(t, err)
if runtime.GOOS == "windows" {
require.Contains(t, out.Err, "connect: No connection")
// connectex is the actual name
require.Contains(t, out.Err, "connectex: No connection")
} else {
require.Contains(t, out.Err, "connect: connection refused")
}
Expand Down

0 comments on commit 90628a1

Please sign in to comment.