Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
grdsdev committed Dec 2, 2024
1 parent a7b9c39 commit 44243da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Tests/IntegrationTests/RealtimeIntegrationTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Supabase
import TestHelpers
import XCTest

@MainActor
final class RealtimeIntegrationTests: XCTestCase {
let realtime = RealtimeClientV2(
url: URL(string: "\(DotEnv.SUPABASE_URL)/realtime/v1")!,
Expand Down
4 changes: 2 additions & 2 deletions Tests/SupabaseTests/SupabaseClientTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,10 @@ final class SupabaseClientTests: XCTestCase {

XCTAssertEqual(client.functions.region, "ap-northeast-1")

let realtimeURL = client.realtimeV2.url
let realtimeURL = await client.realtimeV2.url
XCTAssertEqual(realtimeURL.absoluteString, "https://project-ref.supabase.co/realtime/v1")

let realtimeOptions = client.realtimeV2.options
let realtimeOptions = await client.realtimeV2.options
let expectedRealtimeHeader = client._headers.merging(with: [
.init("custom_realtime_header_key")!: "custom_realtime_header_value"]
)
Expand Down

0 comments on commit 44243da

Please sign in to comment.