mirror of
https://github.com/permissionlesstech/bitchat.git
synced 2026-07-25 01:05:19 +00:00
PeerID 11/n: Noise types use PeerID + create separate files (#750)
* Noise types use PeerID * Fix tests * Extract `NoiseSessionManager` into a separate file * Extract `NoiseSessionState` into a separate file * Remove `failed` state from `NoiseSessionState` * Extract `NoiseSessionError` into a separate file
This commit is contained in:
@@ -7,16 +7,17 @@
|
||||
//
|
||||
|
||||
import Foundation
|
||||
@testable import bitchat
|
||||
|
||||
struct TestConstants {
|
||||
static let defaultTimeout: TimeInterval = 5.0
|
||||
static let shortTimeout: TimeInterval = 1.0
|
||||
static let longTimeout: TimeInterval = 10.0
|
||||
|
||||
static let testPeerID1 = "PEER1234"
|
||||
static let testPeerID2 = "PEER5678"
|
||||
static let testPeerID3 = "PEER9012"
|
||||
static let testPeerID4 = "PEER3456"
|
||||
static let testPeerID1: PeerID = "PEER1234"
|
||||
static let testPeerID2: PeerID = "PEER5678"
|
||||
static let testPeerID3: PeerID = "PEER9012"
|
||||
static let testPeerID4: PeerID = "PEER3456"
|
||||
|
||||
static let testNickname1 = "Alice"
|
||||
static let testNickname2 = "Bob"
|
||||
|
||||
Reference in New Issue
Block a user