Added shutdown method to containers.
This commit is contained in:
parent
85981e75a7
commit
40f0d7251d
5 changed files with 28 additions and 8 deletions
|
|
@ -3,10 +3,18 @@ package config
|
|||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/assert"
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestGetConfig(t *testing.T) {
|
||||
_, err := GetConfig()
|
||||
require.NoError(t, err)
|
||||
|
||||
var env Environment
|
||||
env = "abc"
|
||||
SwitchEnvironment(env)
|
||||
cfg, err := GetConfig()
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, env, cfg.App.Environment)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue