-
Notifications
You must be signed in to change notification settings - Fork 13
I cannot running the test #361
Comments
Can you try building the image:
And then run the test manually. If that doesn't work then delete all of you docker images and retry the above. |
The latest sidetree-fabric image in docker is: docker.pkg.github.com/trustbloc-cicd/snapshot/peer:amd64-0.1.4-snapshot-50fc7cd |
This image looks like it's in a private repository, the error info follow the command
The image I am currently using is manually compiled, but it doesnot work |
Make sure you've authenticated to github's docker hub. |
the I use the Makefile buid a image and use |
See this |
Now i pull the image and the follow the README.md to run test, the error doesn't missing,
and use command line,all is ok
what the test result on you envionment? does my result is normal? |
I change some code in --- a/test/bddtests/fabriccli_steps.go
+++ b/test/bddtests/fabriccli_steps.go
@@ -9,6 +9,7 @@ package bddtests
import (
"os"
"strings"
+ "time"
"github.com/cucumber/godog"
"github.com/pkg/errors"
@@ -86,13 +87,23 @@ func (d *FabricCLISteps) execute(strArgs string) error {
return err
}
logger.Infof("Executing fabric-cli with args: %s ...", args)
- response, err := NewFabricCLI().Exec(args...)
- logger.Infof("... got response: %s", response)
- if err != nil {
- return err
+ for i := 0; i < 5; i++ {
+ response, err := NewFabricCLI().Exec(args...)
+ logger.Infof("... got response: %s", response)
+ if err != nil {
+ if strings.Contains(err.Error(), "context deadline exceeded") {
+ logger.Errorf("exec failed,err:%s\n current %d times,sleep 10 second, and then try again!", err.Error(), i)
+ time.Sleep(10 * time.Second)
+ continue
+ } else {
+ logger.Errorf("failed exec,err:%s", err.Error())
+ return err
+ }
+ }
+ bddtests.SetResponse(response)
+ break
}
- bddtests.SetResponse(response)
return nil
} and got a new error:
the feature is :
focus on the error and feature! the error contains "component name must be set to the base path [/sidetree/0.0.1/blockchain]" but the test interrupt! |
@llorllale what kind of scopes need to be configured in git personal access token ? |
@bjwswang |
Hi, I have a similar problem, when running "make bddtests" I got:
Do you know if it continues to work or is deprecated? |
While i follow the Readme.md step by step:
while exec the first command, the fabric network is up, then it down and test failed with:
3 scenarios (2 passed, 1 failed)
23 steps (17 passed, 1 failed, 5 skipped)
1m10.420150656s
Randomized with seed: 1594627339517076000
testing: warning: no tests to run
and when i running
DISABLE_COMPOSITION=true go test
,and on the other terminal rundocker logs -f peer1.org2.example.com
, i find a error of:and the log txt with context is:
what should i do or wether the readme.md is the latest?
ps: i cannot download the image of
docker.pkg.github.com/trustbloc/sidetree-fabric/peer:latest
,and the image of i use is execmake fabric-peer-docker
The text was updated successfully, but these errors were encountered: