Skip to content

Commit

Permalink
fix test unit (#155)
Browse files Browse the repository at this point in the history
* fix test unit

* extended to all latest go version
  • Loading branch information
realPy authored Sep 11, 2024
1 parent e864c58 commit 019784c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ jobs:
test:
strategy:
matrix:
go-version: [1.16.x,1.17.x,1.18.x,1.19.x,1.20.x]
go-version: [1.16.x,1.17.x,1.18.x,1.19.x,1.20.x,1.21.x,1.22.x,1.23.x]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
services:
Expand Down
8 changes: 4 additions & 4 deletions base/fetch/fetch_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,8 @@ func TestNewCancelable(t *testing.T) {
t.Error("Must not get response")
return nil
}, func(e error) {
if e.Error() != "The user aborted a request." {
t.Error("Error mismatch")
if e.Error() != "signal is aborted without reason" {
t.Error("Error mismatch:", e.Error())
}
io <- true
})
Expand Down Expand Up @@ -304,8 +304,8 @@ func TestNewCancelable(t *testing.T) {
t.Error("Must not get response")
return nil
}, func(e error) {
if e.Error() != "The user aborted a request." {
t.Error("Error mismatch")
if e.Error() != "signal is aborted without reason" {
t.Error("Error mismatch:", e.Error())
}
io <- true
})
Expand Down
2 changes: 1 addition & 1 deletion base/iterator/iterator_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func TestNewFromJSObject(t *testing.T) {

if it, err := NewFromJSObject(obj); testingutils.AssertErr(t, err) {

testingutils.AssertExpect(t, "Object", it.ConstructName_())
testingutils.AssertExpect(t, "Iterator", it.ConstructName_())
}

}
Expand Down

0 comments on commit 019784c

Please sign in to comment.