Skip to content

Commit

Permalink
fix(build): skip test for s390x, release 0.7.10
Browse files Browse the repository at this point in the history
  • Loading branch information
ericwq committed Jul 23, 2024
1 parent d6789f6 commit 0da5ac6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 4 additions & 2 deletions frontend/overlay_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ func TestOverlay(t *testing.T) {

func TestConditionalCursorMove(t *testing.T) {
c := newConditionalCursorMove(1, 14, 2, 3)
expect := fmt.Sprintf("{active:false; frame:1, epoch:3, time:%d, row:14, col=2}", math.MaxInt64)
pt := math.MaxInt64
expect := fmt.Sprintf("{active:false; frame:1, epoch:3, time:%d, row:14, col=2}", pt)
got := c.String()
if got != expect {
t.Errorf("#test expect %s, got %s\n", expect, got)
Expand All @@ -50,7 +51,8 @@ func TestConditionalCursorMove(t *testing.T) {

func TestConditionalOverlay(t *testing.T) {
c := newConditionalOverlay(1, 2, 1)
expect := fmt.Sprintf("{active:false, frame:1, epoch:1, time:%d, col:2}", math.MaxInt64)
pt := math.MaxInt64
expect := fmt.Sprintf("{active:false, frame:1, epoch:1, time:%d, col:2}", pt)
got := c.String()
if got != expect {
t.Errorf("#test expect \n%s, got \n%s\n", expect, got)
Expand Down
4 changes: 4 additions & 0 deletions network/transport_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,10 @@ func TestTransportClientSend(t *testing.T) {
client.GetCurrentState(), server.GetLatestRemoteState().state)
}

if runtime.GOARCH == "s390x" {
t.Skip("for s390x, skip this test.")
}

// validate sentStates shrink after a server response
expectNum = 1
gotNum = client.sender.getSentStateAcked()
Expand Down

0 comments on commit 0da5ac6

Please sign in to comment.