Skip to content

Commit 13430ee

Browse files
committed
test: fix realtime tests
1 parent f3cd145 commit 13430ee

File tree

5 files changed

+950
-954
lines changed

5 files changed

+950
-954
lines changed

Sources/Helpers/Codable.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,11 @@ extension JSONEncoder {
3636
let string = date.iso8601String
3737
try container.encode(string)
3838
}
39+
40+
#if DEBUG
41+
encoder.outputFormatting = [.sortedKeys]
42+
#endif
43+
3944
return encoder
4045
}
4146
}

Sources/Realtime/RealtimeChannelV2.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -296,6 +296,7 @@ public final class RealtimeChannelV2: Sendable, RealtimeChannelProtocol {
296296
private: config.isPrivate
297297
)
298298
]),
299+
encoder: JSONParameterEncoder(encoder: .supabase()),
299300
headers: headers
300301
)
301302
.validate()

0 commit comments

Comments
 (0)