mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-06-13 05:11:21 +00:00
Tweaks to tests and CI
This commit is contained in:
parent
d3ccce4a3a
commit
ff0bc7b98b
|
@ -13,7 +13,7 @@ stages:
|
|||
unit_test:
|
||||
stage: test
|
||||
script:
|
||||
- go test -v ./...
|
||||
- go test -tags unit -v ./...
|
||||
|
||||
integration_test:
|
||||
stage: test
|
||||
|
@ -21,5 +21,6 @@ integration_test:
|
|||
variables:
|
||||
- $BOT_TOKEN
|
||||
script:
|
||||
- go test -tags integration -v ./...
|
||||
# Timeout test after 120 seconds (2 minutes)
|
||||
- timeout 120 go test -tags integration -v ./...
|
||||
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// +build unit
|
||||
|
||||
package rate
|
||||
|
||||
import "testing"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// +build unit
|
||||
|
||||
package rate
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// +build unit
|
||||
|
||||
package bot
|
||||
|
||||
import (
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// +build unit
|
||||
|
||||
package bot
|
||||
|
||||
import "testing"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// +build unit
|
||||
|
||||
package bot
|
||||
|
||||
import "testing"
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
// +build unit
|
||||
|
||||
package handler
|
||||
|
||||
import (
|
||||
|
|
Loading…
Reference in a new issue