Skip to content

Commit

Permalink
Use smaller workers in Travis CI (#6008)
Browse files Browse the repository at this point in the history
Signed-off-by: Neil Twigg <neil@nats.io>

---------

Signed-off-by: Neil Twigg <neil@nats.io>
  • Loading branch information
neilalexander authored Oct 15, 2024
1 parent c0a38c4 commit 1ded578
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ os: linux
dist: focal

vm:
size: 2x-large
size: x-large

language: go
go:
Expand Down
20 changes: 10 additions & 10 deletions server/signal_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,11 +155,11 @@ func TestProcessSignalMultipleProcessesGlob(t *testing.T) {
if err == nil {
t.Fatal("Expected error")
}
expectedStr := "\nsignal \"stop\" 123: no such process"
expectedStr += "\nsignal \"stop\" 456: no such process"
if err.Error() != expectedStr {
t.Fatalf("Error is incorrect.\nexpected: %s\ngot: %s", expectedStr, err.Error())
}
lines := strings.Split(err.Error(), "\n")
require_Len(t, len(lines), 3)
require_Equal(t, lines[0], "") // Empty line comes first
require_True(t, strings.HasPrefix(lines[1], "signal \"stop\" 123:"))
require_True(t, strings.HasPrefix(lines[2], "signal \"stop\" 456:"))
}

func TestProcessSignalMultipleProcessesGlobPartial(t *testing.T) {
Expand All @@ -176,11 +176,11 @@ func TestProcessSignalMultipleProcessesGlobPartial(t *testing.T) {
if err == nil {
t.Fatal("Expected error")
}
expectedStr := "\nsignal \"stop\" 123: no such process"
expectedStr += "\nsignal \"stop\" 124: no such process"
if err.Error() != expectedStr {
t.Fatalf("Error is incorrect.\nexpected: %s\ngot: %s", expectedStr, err.Error())
}
lines := strings.Split(err.Error(), "\n")
require_Len(t, len(lines), 3)
require_Equal(t, lines[0], "") // Empty line comes first
require_True(t, strings.HasPrefix(lines[1], "signal \"stop\" 123:"))
require_True(t, strings.HasPrefix(lines[2], "signal \"stop\" 124:"))
}

func TestProcessSignalPgrepError(t *testing.T) {
Expand Down

0 comments on commit 1ded578

Please sign in to comment.