Skip to content

Commit

Permalink
调整UT
Browse files Browse the repository at this point in the history
  • Loading branch information
steden committed Nov 19, 2024
1 parent de97aa2 commit 749c0c4
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/configure_test.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
package test

import (
"os"
"testing"

"github.com/farseer-go/fs"
"github.com/farseer-go/fs/configure"
"github.com/farseer-go/fs/modules"
"github.com/farseer-go/fs/parse"
"github.com/stretchr/testify/assert"
"os"
"testing"
)

func TestConfigureFSEnv(t *testing.T) {
Expand Down Expand Up @@ -59,5 +61,5 @@ func TestEnvConfig(t *testing.T) {

assert.Equal(t, os.Getenv("COMMAND_MODE"), configure.GetString("command_mode"))
nodes := configure.GetSubNodes("command")
assert.Equal(t, os.Getenv("COMMAND_MODE"), nodes["MODE"])
assert.Equal(t, os.Getenv("COMMAND_MODE"), parse.ToString(nodes["MODE"]))
}

0 comments on commit 749c0c4

Please sign in to comment.