Skip to content

Commit

Permalink
fix broken test (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
ice-cronus authored Nov 29, 2024
1 parent 6b614ec commit 449add6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions server/ws/subscriptions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ func TestPublishingNIP01NIP24Events(t *testing.T) {
CreatedAt: nostr.Timestamp(time.Now().Unix()),
Kind: nostr.KindProfileMetadata,
Tags: tags,
Content: `{"name":"qwerty","about":"me is bot","picture":"https://example.com/pic.jpg"}`,
Content: `{"name":"qwerty","display_name":"qwerty","about":"me is bot","picture":"https://example.com/pic.jpg"}`,
}}
helperSignWithMinLeadingZeroBits(t, validEventNIP01, privkey)
require.NoError(t, relay.Publish(ctx, validEventNIP01.Event))
Expand Down Expand Up @@ -891,7 +891,7 @@ func TestPublishingNIP01NIP24Events(t *testing.T) {
CreatedAt: nostr.Timestamp(time.Now().Unix()),
Kind: nostr.KindProfileMetadata,
Tags: tags,
Content: `{"display_name":"qqq","website":"https://ice.io","banner":"https://example.com/banner.jpg","bot":true}`,
Content: `{"display_name":"","website":"https://ice.io","banner":"https://example.com/banner.jpg","bot":true}`,
}}
helperSignWithMinLeadingZeroBits(t, invalidEvent, privkey)
require.Error(t, relay.Publish(ctx, invalidEvent.Event))
Expand Down

0 comments on commit 449add6

Please sign in to comment.