File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change 3333 - name : Checkout
3434 uses : actions/checkout@v4
3535 - name : Test
36+ env :
37+ IS_VALKEY : ${{ matrix.database == 'valkey/valkey:latest' && 'true' || 'false' }}
3638 run : |
3739 swift test --enable-code-coverage
3840 - name : Convert coverage files
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import Valkey
1616@Suite ( " Command Integration Tests " )
1717struct CommandIntegratedTests {
1818 let valkeyHostname = ProcessInfo . processInfo. environment [ " VALKEY_HOSTNAME " ] ?? " localhost "
19+ static let isValkey = ProcessInfo . processInfo. environment [ " IS_VALKEY " ] == " true "
1920
2021 @available ( valkeySwift 1 . 0 , * )
2122 func withKey< Value> ( connection: some ValkeyClientProtocol , _ operation: ( ValkeyKey ) async throws -> Value ) async throws -> Value {
@@ -193,7 +194,7 @@ struct CommandIntegratedTests {
193194 }
194195
195196 @available ( valkeySwift 1 . 0 , * )
196- @Test ( . disabled ( " failed in redis " ) )
197+ @Test ( . enabled ( if : Self . isValkey ) )
197198 func testSCRIPTfunctions( ) async throws {
198199 var logger = Logger ( label: " Valkey " )
199200 logger. logLevel = . trace
You can’t perform that action at this time.
0 commit comments