2018-05-15 01:31:26 +01:00
|
|
|
// Copyright (C) 2018 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
package netstate
|
|
|
|
|
|
|
|
import (
|
2018-06-04 17:45:07 +01:00
|
|
|
"os"
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/spf13/viper"
|
2018-05-15 01:31:26 +01:00
|
|
|
)
|
|
|
|
|
2018-06-04 17:45:07 +01:00
|
|
|
const (
|
|
|
|
API_KEY = "abc123"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestMain(m *testing.M) {
|
|
|
|
viper.SetEnvPrefix("API")
|
|
|
|
os.Setenv("API_KEY", API_KEY)
|
|
|
|
viper.AutomaticEnv()
|
|
|
|
os.Exit(m.Run())
|
|
|
|
}
|