Fix broken tests. (#20134)

This commit is contained in:
Derek Menteer 2024-01-09 14:57:27 -06:00 committed by GitHub
parent 96790a814c
commit 131ef2a133
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -759,7 +759,7 @@ func TestIntentionApply_WithoutIDs(t *testing.T) {
},
RaftIndex: entry.RaftIndex,
}
entry.Hash = 0
require.Equal(t, expect, entry)
}

View File

@ -1197,6 +1197,7 @@ func TestDatacenterSupportsIntentionsAsConfigEntries(t *testing.T) {
if err := srv.RPC(context.Background(), "ConfigEntry.Get", &arg, &reply); err != nil {
return nil, err
}
reply.Entry.SetHash(0)
return reply.Entry, nil
}