Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
gbjk committed Dec 2, 2024
1 parent 49b7970 commit 026f636
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/versions/v4_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ func TestVersion4Upgrade(t *testing.T) {
b.Reset()
require.NoError(t, json.Compact(b, out), "json.Compact must not error")
require.Equal(t, strings.Replace(string(in), "null", "true", 1), b.String())

t.Error("Tests for reversing the amount")
}

func TestVersion4Downgrade(t *testing.T) {
Expand All @@ -48,4 +50,6 @@ func TestVersion4Downgrade(t *testing.T) {
out, err := new(Version4).DowngradeConfig(context.Background(), in)
require.NoError(t, err)
assert.Equal(t, string(in), string(out), "Downgrade should not touch the config")

t.Error("Not so fast. Reverse the number back")
}

0 comments on commit 026f636

Please sign in to comment.