fix test files
This commit is contained in:
@@ -2,11 +2,19 @@ package helper
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"os"
|
||||
"sync"
|
||||
"testing"
|
||||
"time"
|
||||
)
|
||||
|
||||
func TestMain(m *testing.M) {
|
||||
os.Setenv("GO_ENV", "development")
|
||||
code := m.Run()
|
||||
os.Unsetenv("GO_ENV")
|
||||
os.Exit(code)
|
||||
}
|
||||
|
||||
func TestNewCircuitBreaker(t *testing.T) {
|
||||
tests := []struct {
|
||||
name string
|
||||
|
||||
Reference in New Issue
Block a user