Skip to content

Commit 85b5bac

Browse files
authored
Disable network monitor win an env var (#203)
1 parent e38e8db commit 85b5bac

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

Sources/Hub/HubApi.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -655,7 +655,10 @@ private extension HubApi {
655655
}
656656

657657
func shouldUseOfflineMode() -> Bool {
658-
!isConnected || isExpensive || isConstrained
658+
if ProcessInfo.processInfo.environment["CI_DISABLE_NETWORK_MONITOR"] == "1" {
659+
return false
660+
}
661+
return !isConnected || isExpensive || isConstrained
659662
}
660663

661664
deinit {

0 commit comments

Comments
 (0)