Added shutdown method to containers.

This commit is contained in:
mikestefanello 2021-12-19 14:56:00 -05:00
parent 85981e75a7
commit 40f0d7251d
5 changed files with 28 additions and 8 deletions

View file

@ -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)
}