From 13fafb831b1095a9bc3c88ee18e10cf65359c456 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 926ffc2..ea8e05b 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" @@ -874,8 +874,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) {