mirror of
https://gitee.com/johng/gf
synced 2026-06-06 02:25:47 +08:00
fix issue in unit test case og grand
This commit is contained in:
@ -35,7 +35,7 @@ before_script:
|
||||
- psql -c 'create database travis_ci_test;' -U postgres
|
||||
|
||||
script:
|
||||
#- GOARCH=386 go test -v ./... || exit 1
|
||||
- GOARCH=386 go test -v ./... || exit 1
|
||||
- GOARCH=amd64 go test -v ./... -race -coverprofile=coverage.txt -covermode=atomic
|
||||
|
||||
after_success:
|
||||
|
||||
@ -25,7 +25,7 @@ func Test_Intn(t *testing.T) {
|
||||
for i := 0; i < 1000000; i++ {
|
||||
n := grand.Intn(-100)
|
||||
gtest.AssertLE(n, 0)
|
||||
gtest.AssertGT(n, -100)
|
||||
gtest.Assert(n, -100)
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user