From 995db997143620e24755735174ab25996a2da3ce Mon Sep 17 00:00:00 2001 From: Mark Sagi-Kazar Date: Thu, 6 Apr 2023 11:05:32 +0200 Subject: [PATCH] test: fix test to actually assert something Signed-off-by: Mark Sagi-Kazar --- viper_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/viper_test.go b/viper_test.go index b867337..8283b5c 100644 --- a/viper_test.go +++ b/viper_test.go @@ -9,7 +9,7 @@ import ( "bytes" "encoding/json" "io" - "io/ioutil" //nolint:staticcheck + "io/ioutil" "os" "os/exec" "path" @@ -892,8 +892,10 @@ func TestAliasesOfAliases(t *testing.T) { } func TestRecursiveAliases(t *testing.T) { + Set("baz", "bat") RegisterAlias("Baz", "Roo") RegisterAlias("Roo", "baz") + assert.Equal(t, "bat", Get("Baz")) } func TestUnmarshal(t *testing.T) {