When I run my tests one at a time they work fine.
However, when I run in parallel (more than 2 at a time) I get the following error:
Error [ERR_STREAM_WRITE_AFTER_END]: write after end
at writeAfterEnd (_stream_writable.js:266:14)
at RunnerStream.Writable.write (_stream_writable.js:315:5)
at RunnerTransformStream.ondata (_stream_readable.js:719:22)
at RunnerTransformStream.emit (events.js:314:20)
at RunnerTransformStream.EventEmitter.emit (domain.js:483:12)
at addChunk (_stream_readable.js:298:12)
at readableAddChunk (_stream_readable.js:273:9)
at RunnerTransformStream.Readable.push (_stream_readable.js:214:10)
at RunnerTransformStream.Transform.push (_stream_transform.js:152:32)
at RunnerTransformStream._transform (C:\dev\repositories\login.dfe.ui-tests\node_modules#wdio\local-runner\build\transformStream.js:15:14)
Anyone had this issue before?
Is it just running too fast?
To fix this I changed legLevel in wdio.conf.js from 'info' to 'silent'.
That seems to have done the trick.
Related
I am trying to fetch data from blockchain using query in chaincode. I have invoked around 2,50,000 records in blockchain and trying to fetch the data using query. When i run the chaincode and get the peer logs, I am getting the below error.
failed to invoke chaincode name:"scbcch" , error: timeout expired while executing transaction
When i do a query for lesser data my code works fine without these errors.
Can anybody please help me in solving the issue please.
I am using Hyperledger Fabric 1.4.
Here is my Query code:
queryString := fmt.Sprintf("{\"selector\":{\"_id\": {\"$gt\": null},\"$and\":[{\"terminationReportID\":{\"$ne\":\"%s\"}},{\"terminationReportFlag\":{\"$eq\":\"%s\"}},{\"effectiveDateOfAction\":{\"$gt\":\"%s\"}},{\"importDate\":{\"$eq\":\"%s\"}}]},\"fields\": [\"bankID\",\"effectiveDateOfAction\",\"costCentre\"],\"use_index\":[\"_design/indexTerminationReportDoc\",\"indexTerminationReportName\"]}","null", "Yes", "2018-10-31", lastImportDatekey)
queryResultss11, errtr := getQueryResultForQueryString(stub, queryString)
And my Indexing is:
{"index":{"fields":["terminationReportID","terminationReportFlag","effectiveDateOfAction","importDate"]},"ddoc":"indexTerminationReportDoc", "name":"indexTerminationReportName","type":"json"}
Can anyone please help me to figure out and resolve the issue. I am stuck with this for more than 3 days.
Is there anything I have to change on my index part. I am re-posting the same issue as I am not getting any support for this issue.
The issue is with the chaincode execution timeout.You can customize it in the docker file of your peers.
CORE_CHAINCODE_EXECUTETIMEOUT=80s
When trying to "Run All Tests" from flutter/dart on VSCODE, I'm getting a SIGINT error and the test finish with "loading"on file, only the first one goes ok. The problem is that the same thing does not happen if I run the tests one by one.
loading /Users/marciomontenegro/Documents/Projects/mel/test/domain/usecases/sign_in_test.dart:
ERROR: Failed to load "/Users/marciomontenegro/Documents/Projects/mel/test/domain/usecases/sign_in_test.dart":
Shell subprocess terminated by ^C (SIGINT, -2) before connecting to test harness.
Test: /Users/marciomontenegro/Documents/Projects/mel/test/domain/usecases/sign_in_test.dart
Shell: /Users/marciomontenegro/flutter/bin/cache/artifacts/engine/darwin-x64/flutter_tester
dart:async/stream_controller.dart 595:43 _StreamController.addError
dart:async/stream_controller.dart 862:13 _StreamSinkWrapper.addError
package:stream_channel/src/guarantee_channel.dart 144:14 _GuaranteeSink._addError
package:stream_channel/src/guarantee_channel.dart 135:5 _GuaranteeSink.addError
package:flutter_tools/src/test/flutter_platform.dart 566:27 FlutterPlatform._startTest
===== asynchronous gap ===========================
dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback
dart:async-patch/async_patch.dart 71:23 _asyncThenWrapperHelper
package:flutter_tools/src/test/flutter_platform.dart FlutterPlatform._startTest
package:flutter_tools/src/test/flutter_platform.dart 368:36 FlutterPlatform.loadChannel
package:flutter_tools/src/test/flutter_platform.dart 321:46 FlutterPlatform.load
===== asynchronous gap ===========================
dart:async/zone.dart 1053:19 _CustomZone.registerUnaryCallback
dart:async-patch/async_patch.dart 71:23 _asyncThenWrapperHelper
package:test_core/src/runner/loader.dart Loader.loadFile.<fn>
package:test_core/src/runner/load_suite.dart 98:31 new LoadSuite.<fn>.<fn>
===== asynchronous gap ===========================
dart:async/zone.dart 1045:19 _CustomZone.registerCallback
dart:async/zone.dart 962:22 _CustomZone.bindCallbackGuarded
dart:async/timer.dart 52:45 new Timer
dart:async/timer.dart 89:9 Timer.run
dart:async/future.dart 172:11 new Future
package:test_api/src/backend/invoker.dart 399:21 Invoker._onRun.<fn>.<fn>.<fn>
Just found some info about this issue.
From https://github.com/Dart-Code/Dart-Code/issues/2082 :
Ok, I can only repro this using launch.json and not with the Run All Tests command. The reason for this is that Run All Tests runs without the debugger, but setting up launch.json as as described at #1673 (comment) will run in debug mode, but in a single debug session (and that fails due to multiple VM services).
I don't think there's going to be an easy way to handle this.
As a workaround, if you add "noDebug": true to the launch.json, it should fix it (albeit at the expense of debugging, and a warning from VS Code that it's not a valid option).
This questions was already raised before, but left without answer in the issue.
What is recommended way to test the current scenario, when on a click of the button there is a BackHandler.exitApp() event?
I tried to test like this:
await element(by.id('licenseCancelButton')).tap();
await expect(element(by.id('licensePage'))).toBeNotVisible();
But I get this error:
Error: No activities found. Did you forget to launch the activity by calling getActivity() or startActivitySync or similar?
at Client.execute (node_modules/detox/src/client/Client.js:92:28)
at InvocationManager.execute (node_modules/detox/src/invoke.js:11:33)
at WaitForInteraction.execute (node_modules/detox/src/android/expect.js:128:35)
at WaitForInteraction.withTimeout (node_modules/detox/src/android/expect.js:161:16)
at Context.it (e2e/firstTest.spec.js:8:69)
at process._tickCallback (internal/process/next_tick.js:68:7)
I using EMMA plugin.
At first I 've run test normally,but there is a problem when I activate coverage collection and run test again it become failed as show in the picture
I 've try to add -XX:-UseSplitVerifier in JVM argument but It's not work.
It's my fault.
I 've try to add -XX:-UseSplitVerifier in the VM options instead of argument and it's work now thank you.
In my application I have integrate Three20 Library and Restkit framework, after this I am Build the code the error was generated
the error is :
`"Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2 failed with exit code 1"`
and the error description is
ld: duplicate symbol _OBJC_METACLASS_$_RKJSONParser in /Users/pratikkanada/Desktop/Zipogo/Zipongo - working
version/RestKit/Build/Release-iphonesimulator/libRestKitJSONParserYAJL.a(RKJSONParser+YAJL.o) and
/Users/pratikkanada/Desktop/Zipogo/Zipongo - working version/RestKit/Build/Release-
iphonesimulator/libRestKitJSONParserSBJSON.a(RKJSONParser+SBJSON.o)
so, pls tell me how to solve this error
It seems that you have added that lib two times.
Please search libRestKitJSONParserSBJSON.a and (RKJSONParser+SBJSON.o) in entire code and you may found one of these added two times.
Simply solution is remove any one of two same files.