Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
orvice committed Oct 26, 2024
1 parent 8f5716c commit 71cc84a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/config/config_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ import (
func TestLoadConfig(t *testing.T) {
os.Setenv("DOMAIN", "example.com")
os.Setenv("TELEGRAM_CHATID", "1234567890")
err := LoadConfig(".")
conf, err := New()
assert.Nil(t, err)

t.Log(GetConfig())
assert.Equal(t, "example.com", GetConfig().Domain)
assert.Equal(t, int64(1234567890), GetConfig().TelegramChatID)
t.Log(conf)
assert.Equal(t, "example.com", conf.Domain)
assert.Equal(t, int64(1234567890), conf.TelegramChatID)
}

0 comments on commit 71cc84a

Please sign in to comment.