Skip to content

Instantly share code, notes, and snippets.

@keefertaylor
Created October 18, 2019 05:35
Show Gist options
  • Save keefertaylor/717bbea39a9e788e049da0397019953f to your computer and use it in GitHub Desktop.
Save keefertaylor/717bbea39a9e788e049da0397019953f to your computer and use it in GitHub Desktop.
TezosKit / Pocket Network Unit Test Output
2019-10-18 00:34:07.653 xcodebuild[37054:3328422] [MT] PluginLoading: Required plug-in compatibility UUID 2FD51EF8-522D-4532-9698-980C4C497FD1 for plug-in at path '~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/Alcatraz.xcplugin' not present in DVTPlugInCompatibilityUUIDs
▸ Running script 'SwiftLint'
2019-10-18 00:34:08.965 xcodebuild[37054:3328441] IDETestOperationsObserverDebug: Writing diagnostic log for test session to:
/Users/keefertaylor/Library/Developer/Xcode/DerivedData/TezosKit-azhwkmvjudwqolgugmsphxlkimqx/Logs/Test/Test-TezosKit-2019.10.18_00-34-08--0500.xcresult/Staging/1_Test/Diagnostics/TezosKitTests-E2FBE3C0-3538-443E-AB22-302837A0371A/TezosKitTests-C4FBB702-E109-47D5-B8EF-DA432435C947/Session-TezosKitTests-2019-10-18_003408-8xSzUU.log
2019-10-18 00:34:08.965 xcodebuild[37054:3328422] [MT] IDETestOperationsObserverDebug: (CD9D5B4E-3837-4B48-BBEB-5812A3EA0F62) Beginning test session TezosKitTests-CD9D5B4E-3837-4B48-BBEB-5812A3EA0F62 at 2019-10-18 00:34:08.965 with Xcode 11A420a on target <DVTiPhoneSimulator: 0x7f82a9f641c0> {
SimDevice: iPhone 8 (8D8D1A07-AC9C-4D90-95D3-7165732EA5BE, iOS 13.0, Shutdown)
} (13.0 (17A577a))
2019-10-18 00:34:17.464 xcodebuild[37054:3328422] [MT] IDETestOperationsObserverDebug: (CD9D5B4E-3837-4B48-BBEB-5812A3EA0F62) Finished requesting crash reports. Continuing with testing.
2019-10-18 00:34:17.490 xcodebuild[37054:3328422] [MT] DVTAssertions: Warning in /Library/Caches/com.apple.xbs/Sources/DVTiOSFrameworks/DVTiOSFrameworks-14802/IDEiOSSupportCore/DVTiPhoneSimulator.m:1890
Details: [DVTiPhoneSimulator -primaryInstrumentsServer was called from the main thread
Object: <DVTiPhoneSimulator: 0x7f82a9f641c0>
Method: -primaryInstrumentsServerWithError:
Thread: <NSThread: 0x7f82a4d148a0>{number = 1, name = main}
Please file a bug at https://feedbackassistant.apple.com with this warning message and any useful information you can provide.
All tests
Test Suite TezosKitTests.xctest started
AbstractOperationTest
✓ testDictionaryRepresentation (0.003 seconds)
✓ testRequiresReveal (0.000 seconds)
ConseilClientTests
✓ testCombineResults_aFailure (0.001 seconds)
✓ testCombineResults_aNil (0.000 seconds)
✓ testCombineResults_bFailure (0.001 seconds)
✓ testCombineResults_bNil (0.000 seconds)
✓ testCombineResults_bothFailure (0.000 seconds)
✓ testCombineResults_bothNil (0.000 seconds)
✓ testCombineResults_bothNoNil (0.002 seconds)
✓ testCombineResults_bothSuccess (0.001 seconds)
✓ testOriginatedAccounts (0.028 seconds)
✓ testOriginatedContracts (0.001 seconds)
✓ testReceived (0.001 seconds)
✓ testSent (0.001 seconds)
✓ testTransactions (0.002 seconds)
ConseilEntityTest
✓ testEntityRawValueURLEncoded (0.001 seconds)
ConseilNetworkTest
✓ testNetworkRawValueURLEncoded (0.001 seconds)
ConseilPlatformTest
✓ testPlatformRawValueURLEncoded (0.001 seconds)
CryptoUtilTest
✓ testBinToHex (0.000 seconds)
✓ testHexToBin (0.001 seconds)
DelegationOperationTest
✓ testDictionaryRepresentation_delegate (0.001 seconds)
✓ testDictionaryRepresentation_registerDelegate (0.001 seconds)
✓ testDictionaryRepresentation_undelegate (0.001 seconds)
DexterExchangeClientTests
✓ testAddLiquidity (0.160 seconds)
✓ testGetExchangeBalanceTez (0.001 seconds)
✓ testGetExchangeBalanceTokens (0.001 seconds)
✓ testGetExchangeLiquidity (0.001 seconds)
✓ testTradeTezToTokens (0.186 seconds)
✓ testTradeTokensForTez (0.005 seconds)
✓ testWithdrawLiquidity (0.040 seconds)
ForgeOperationRPCTest
✓ testForgeOperationRPC (0.001 seconds)
ForgingServiceTests
✓ testForgingServiceWithLocalPolicy (0.001 seconds)
✓ testForgingServiceWithLocalWithRemoteFallbackPolicyAndUnforgeableOperation (0.001 seconds)
✓ testForgingServiceWithRemotePolicy (0.001 seconds)
✓ testForgingServiceWithRemotePolicySync (0.001 seconds)
GetAddressBalanceRPCTest
✓ testGetAddressBalanceRPC (0.001 seconds)
GetAddressCounterRPCTest
✓ testGetAddressCounterRPC (0.001 seconds)
GetAddressManagerKeyRPCTest
✓ testGetAddressManagerKeyRPC (0.001 seconds)
GetBallotsListRPCTest
✓ testGetBallotsListRPC (0.001 seconds)
GetBallotsRPCTest
✓ testGetBallotsRPC (0.000 seconds)
GetBigMapValueRPCTest
✓ testGetBigMapValueRPC (0.001 seconds)
GetChainHeadHashRPCTest
✓ testGetChainHeadHashRPC (0.001 seconds)
GetChainHeadRPCTest
✓ testGetChainHeadRPC (0.000 seconds)
GetContractStorageRPCTest
✓ testGetContractStorageRPC (0.000 seconds)
GetCurrentPeriodKindRPCTest
✓ testGetCurrentPeriodKindRPC (0.001 seconds)
GetDelegateRPCTest
✓ testGetDelegateRPC (0.000 seconds)
GetExpectedQuorumRPCTest
✓ testGetExpectedQuorumRPCTest (0.001 seconds)
GetProposalUnderEvaluationRPCTest
✓ testGetProposalUnderEvaluationRPC (0.000 seconds)
GetProposalsListRPCTest
✓ testGetProposalsListRPC (0.000 seconds)
GetVotingDelegateRightsRPCTest
✓ testGetVotingDelegateRightsRPC (0.000 seconds)
InjectOperationRPCTest
✓ testInjectRPC (0.000 seconds)
InjectionServiceTest
✓ testInjectionService (0.001 seconds)
✓ testInjectionServiceBadResponse (0.001 seconds)
IntegerResponseAdapterTest
✓ testParseInteger (0.001 seconds)
✓ testParseIntegerWithInvalidInput (0.001 seconds)
✓ testParseIntegerWithQuotes (0.001 seconds)
✓ testParseIntegerWithWhitespace (0.001 seconds)
JSONArrayResponseAdapterTest
✓ testParseArray (0.001 seconds)
✓ testParseArrayWithDictionary (0.001 seconds)
✓ testParseDictionaryWithInvalidJSON (0.001 seconds)
JSONDictionaryResponseAdapterTest
✓ testParseDictionary (0.001 seconds)
✓ testParseDictionaryWithArray (0.000 seconds)
✓ testParseDictionaryWithInvalidJSON (0.001 seconds)
JSONUtilsTest
✓ testJSONForArray (0.001 seconds)
✓ testJSONForDictionary (0.001 seconds)
✓ testJSONForInt (0.000 seconds)
✓ testJSONForString (0.001 seconds)
MichelsonAnnotationTests
✓ testInvalidAnnotation (0.001 seconds)
✓ testValidAnnotations (0.001 seconds)
MichelsonTests
✓ testAddLiquidity (0.001 seconds)
✓ testAnnotation (0.001 seconds)
✓ testBuyTez (0.001 seconds)
✓ testBuyTokens (0.001 seconds)
✓ testCustomParameter (0.001 seconds)
✓ testEncodeBinaryBytesToJSON (0.001 seconds)
✓ testEncodeDateToJSON (0.001 seconds)
✓ testEncodeFalseToJSON (0.001 seconds)
✓ testEncodeHexBytesToJSON (0.001 seconds)
✓ testEncodeIntToJSON (0.001 seconds)
✓ testEncodeLeftToJSON (0.001 seconds)
✓ testEncodeNoneToJSON (0.000 seconds)
✓ testEncodePairToJSON (0.001 seconds)
✓ testEncodeRightToJSON (0.000 seconds)
✓ testEncodeSomeToJSON (0.000 seconds)
✓ testEncodeStringToJSON (0.000 seconds)
✓ testEncodeTrueToJSON (0.000 seconds)
✓ testEncodeUnitToJSON (0.000 seconds)
✓ testRemoveLiquidity (0.001 seconds)
✓ testTransferTokens (0.000 seconds)
MnemonicUtilsTest
✓ testGenerateMnemonic (0.001 seconds)
✓ testSeedStringFromMnemonicEmptyPassphrase (0.022 seconds)
✓ testSeedStringFromMnemonicNoPassphrase (0.027 seconds)
✓ testSeedStringFromMnemonicWithPassphrase (0.021 seconds)
✓ testValidateMnemonic (0.008 seconds)
NetworkClientTest
✓ testBadEndpointCompletesWithURL (0.002 seconds)
✓ testBadEndpointCompletesWithURL_promises (0.003 seconds)
✓ testBadHTTPResponseCompletesWithError (0.001 seconds)
✓ testBadHTTPResponseCompletesWithError_promises (0.001 seconds)
✓ testCallbackOnCorrectQueue (0.001 seconds)
✓ testCallbackOnCorrectQueue_promises (0.001 seconds)
✓ testCallbackOnCorrectQueueForBadURL (0.001 seconds)
✓ testCallbackOnCorrectQueueForBadURL_promises (0.001 seconds)
✓ testCallbackOnCorrectQueueWithOverriddenQueue (0.001 seconds)
✓ testErrorCompletesWithError (0.001 seconds)
✓ testErrorCompletesWithError_promises (0.001 seconds)
✓ testInocrrectDataCompletesWithError (0.001 seconds)
✓ testInocrrectDataCompletesWithError_promises (0.001 seconds)
✓ testNilDataCompletesWithError (0.001 seconds)
✓ testNilDataCompletesWithError_promises (0.001 seconds)
✓ testRequestCompletesWithResultAndNoError (0.001 seconds)
✓ testRequestCompletesWithResultAndNoError_promises (0.001 seconds)
OperationFactoryTest
✓ testDelegationOperationWithCustomFees (0.001 seconds)
✓ testDelegationOperationWithDefaultFees (0.001 seconds)
✓ testOriginationOperationWithCustomFees (0.001 seconds)
✓ testOriginationOperationWithDefaultFees (0.001 seconds)
✓ testRegisterDelegateOperationWithCustomFees (0.001 seconds)
✓ testRegisterDelegateOperationWithDefaultFees (0.001 seconds)
✓ testRevealOperationWithCustomFees (0.001 seconds)
✓ testRevealOperationWithDefaultFees (0.001 seconds)
✓ testTransactionOperationWithCustomFees (0.000 seconds)
✓ testTransactionOperationWithDefaultFees (0.001 seconds)
✓ testUndelegateOperationWithCustomFees (0.001 seconds)
✓ testUndelegateOperationWithDefaultFees (0.001 seconds)
OperationMetadataProviderTests
✓ testOperationMetadataWithInvalidCounter (0.001 seconds)
✓ testOperationMetadataWithInvalidHead (0.001 seconds)
✓ testOperationMetadataWithMissingManagerKey (0.001 seconds)
✓ testOperationMetadataWithValidResponses (0.001 seconds)
✓ testOperationMetadataWithValidResponsesSync (0.001 seconds)
OperationPayloadFactoryTest
✓ testDictionaryRepresentation (0.001 seconds)
✓ testOperationPayloadInitMultipleOperations (0.001 seconds)
✓ testOperationPayloadInitSingleOperation (0.001 seconds)
✓ testOperationPayloadInitWithUnrevealedKeyRevealNotRequired (0.001 seconds)
✓ testOperationPayloadInitWithUnrevealedKeyRevealRequired (0.001 seconds)
OperationWithCounterTest
✓ testDictionaryRepresentation (0.001 seconds)
PeriodKindResponseAdapterTest
✓ testParsePeriodKind (0.001 seconds)
✓ testParsePeriodKindWithQuotes (0.000 seconds)
✓ testParsePeriodKindWithWhitespace (0.001 seconds)
✓ testParsPeriodKindWithInvalidInput (0.001 seconds)
PocketNetworkClientTest
✓ testBadEndpointCompletesWithURL (0.002 seconds)
✓ testBadHTTPResponseCompletesWithError (0.001 seconds)
✓ testCallbackOnCorrectQueue (0.001 seconds)
✓ testCallbackOnCorrectQueueForBadURL (0.001 seconds)
✓ testErrorCompletesWithError (0.001 seconds)
✓ testInocrrectDataCompletesWithError (0.001 seconds)
✓ testNilDataCompletesWithError (0.001 seconds)
✗ testRequestCompletesWithResultAndNoError, failed
✗ testRequestCompletesWithResultAndNoError, Asynchronous wait failed: Exceeded timeout of 10 seconds, with unfulfilled expectations: "Completion is Called".
✗ testRetrieveNetworkVersion, failed
✗ testRetrieveNetworkVersion, Asynchronous wait failed: Exceeded timeout of 10 seconds, with unfulfilled expectations: "Completion is Called".
PreapplicationServiceTest
✓ testPreapplicationInvalidOperation (0.001 seconds)
✓ testPreapplicationInvalidResponse (0.001 seconds)
✓ testPreapplicationValidOperation (0.001 seconds)
✓ testPreapplyErrorFromResponseInvalidOperation (0.001 seconds)
✓ testPreapplyErrorFromResponseValidOperation (0.001 seconds)
PreapplyOperationRPCTest
✓ testPreapplyOperationRPC (0.001 seconds)
RPCResponseHandlerTest
✓ testHandleResponseWithHTTP200AndError (0.001 seconds)
✓ testHandleResponseWithHTTP200AndNilErrorAndBadData (0.001 seconds)
✓ testHandleResponseWithHTTP200AndNilErrorAndNoData (0.001 seconds)
✓ testHandleResponseWithHTTP200AndNilErrorAndValidData (0.000 seconds)
✓ testHandleResponseWithHTTP400 (0.000 seconds)
✓ testHandleResponseWithHTTP500 (0.000 seconds)
✓ testHandleResponseWithHTTPInvalid (0.000 seconds)
RPCTest
✓ testIsPOSTRequest (0.000 seconds)
RevealOperationTest
✓ testDictionaryRepresentation (0.001 seconds)
RunOperationRPCTest
✓ testForgeOperationRPC (0.001 seconds)
SignedOperationPayloadTest
✓ testDictionaryRepresentation (0.001 seconds)
SignedProtocolOperationPayloadTest
✓ testDictionaryRepresentation (0.001 seconds)
SigningServiceTests
✓ testSign (0.001 seconds)
SimulationResultResponseAdapterTest
✓ testBatchTransaction (0.001 seconds)
✓ testFailureExhaustedGas (0.001 seconds)
✓ testFailureOperationParameters (0.001 seconds)
✓ testInternalTransactionS (0.001 seconds)
✓ testSuccessfulContractInvocation (0.001 seconds)
✓ testSuccessfulTransaction (0.001 seconds)
SimulationServiceTest
✓ testSimulation (0.002 seconds)
✓ testSimulationMetadataRetrievalFailed (0.001 seconds)
✓ testSimulationSync (0.001 seconds)
StringResponseAdapterTest
✓ testParseString (0.000 seconds)
✓ testQuotedString (0.000 seconds)
✓ testUnexpectedEncoding (0.000 seconds)
✓ testWhitespaceString (0.000 seconds)
TezResponseAdapterTest
✓ testParseBalance (0.001 seconds)
✓ testParseBalanceWithInvalidInput (0.000 seconds)
✓ testParseBalanceWithQuotes (0.000 seconds)
✓ testParseBalanceWithWhitespace (0.000 seconds)
TezTest
✓ testAddTwoDecimalsNoCarry (0.001 seconds)
✓ testAddTwoDecimalsWithCarry (0.001 seconds)
✓ testAddTwoWholeNumbers (0.001 seconds)
✓ testBalanceFromInvalidString (0.000 seconds)
✓ testBalanceFromStringSmallNumber (0.000 seconds)
✓ testEquality (0.000 seconds)
✓ testGreaterThan (0.000 seconds)
✓ testHumanReadableRepresentationWithDecimalNumber (0.000 seconds)
✓ testHumanReadableRepresentationWithSmallNumber (0.000 seconds)
✓ testHumanReadableRepresentationWithWholeNumber (0.001 seconds)
✓ testLessThan (0.001 seconds)
✓ testRPCRepresentationWithDecimalNumber (0.001 seconds)
✓ testRPCRepresentationWithSmallNumber (0.000 seconds)
✓ testRPCRepresentationWithWholeNumber (0.000 seconds)
✓ testSubtractTwoDecimalsNoCarry (0.001 seconds)
✓ testSubtractTwoDecimalsWithCarry (0.000 seconds)
✓ testSubtractTwoWhoNumbers (0.000 seconds)
✓ testVeryLargeAmout (0.001 seconds)
TezosKitErrorCodesTest
✓ testLocalizedDescription (0.000 seconds)
✓ testLocalizedDescriptionWithUnderlyingError (0.001 seconds)
TokenContractClientTests
✓ testGetBalance (0.001 seconds)
✓ testTransferTokens (0.006 seconds)
TransactionOperationTest
✓ testTransation (0.001 seconds)
✓ testTransationWithParameter (0.001 seconds)
TransactionTest
✓ testInValidTransaction_badInput (0.000 seconds)
✓ testInValidTransaction_missingFee (0.001 seconds)
✓ testValidTransaction (0.001 seconds)
TransactionsResponseAdapterTest
✓ testParse (0.001 seconds)
WalletTests
✓ testEqualityFromMnemonicAndPassphrase (0.104 seconds)
✓ testEqualityFromSecretKeys (0.002 seconds)
✓ testGenerateWallet (0.041 seconds)
✓ testGenerateWalletFromInvalidSecretKey (0.001 seconds)
✓ testGenerateWalletFromSecretKey (0.001 seconds)
✓ testGenerateWalletMnemonicEmptyPassphrase (0.022 seconds)
✓ testGenerateWalletMnemonicNoPassphrase (0.021 seconds)
✓ testGenerateWalletMnemonicWithPassphrase (0.021 seconds)
✓ testSign (0.021 seconds)
TezosKitTests.PocketNetworkClientTest
testRequestCompletesWithResultAndNoError, failed
/Users/keefertaylor/tezoskit/Tests/TezosKit/PocketNetworkClientTest.swift:178
```
case .failure:
XCTFail()
case .success(let data):
```
testRequestCompletesWithResultAndNoError, Asynchronous wait failed: Exceeded timeout of 10 seconds, with unfulfilled expectations: "Completion is Called".
/Users/keefertaylor/tezoskit/Tests/TezosKit/PocketNetworkClientTest.swift:184
```
}
wait(for: [expectation], timeout: 10)
}
```
testRetrieveNetworkVersion, failed
/Users/keefertaylor/tezoskit/Tests/TezosKit/PocketNetworkClientTest.swift:31
```
case .failure:
XCTFail()
case .success:
```
testRetrieveNetworkVersion, Asynchronous wait failed: Exceeded timeout of 10 seconds, with unfulfilled expectations: "Completion is Called".
/Users/keefertaylor/tezoskit/Tests/TezosKit/PocketNetworkClientTest.swift:37
```
wait(for: [expectation], timeout: 10)
}
```
Executed 220 tests, with 4 failures (0 unexpected) in 20.978 (21.101) seconds
2019-10-18 00:34:42.971 xcodebuild[37054:3328422] [MT] IDETestOperationsObserverDebug: 34.012 elapsed -- Testing started completed.
2019-10-18 00:34:42.971 xcodebuild[37054:3328422] [MT] IDETestOperationsObserverDebug: 0.000 sec, +0.000 sec -- start
2019-10-18 00:34:42.971 xcodebuild[37054:3328422] [MT] IDETestOperationsObserverDebug: 34.012 sec, +34.012 sec -- end
Failing tests:
TezosKitTests:
PocketNetworkClientTest.testRequestCompletesWithResultAndNoError()
PocketNetworkClientTest.testRequestCompletesWithResultAndNoError()
PocketNetworkClientTest.testRetrieveNetworkVersion()
PocketNetworkClientTest.testRetrieveNetworkVersion()
** TEST FAILED **
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment