Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add documentation on how to install project from source and run test cases #89

Open
dauTT opened this issue Aug 1, 2019 · 1 comment

Comments

@dauTT
Copy link

dauTT commented Aug 1, 2019

I am not able to install correctly the project and run the test cases. I did as follow:

  1. glide update
  2. go test ./..

and got the following error message:

--- FAIL: TestOntId_RegIDWithPublicKey (0.00s)
panic: runtime error: invalid memory address or nil pointer dereference [recovered]
	panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x20 pc=0x8ff719]

goroutine 5 [running]:
testing.tRunner.func1(0xc0000e0300)
	/usr/local/go/src/testing/testing.go:830 +0x388
panic(0x98b2a0, 0xf06250)
	/usr/local/go/src/runtime/panic.go:522 +0x1b5
github.com/ontio/ontology-go-sdk.(*Wallet).NewIdentity(0x0, 0x10212, 0xece31c, 0x6, 0x6, 0xc0000b0d10, 0x4ecefd, 0xc05df0)
	/home/dau/workspace/go/src/github.com/ontio/ontology-go-sdk/wallet.go:450 +0x29
github.com/ontio/ontology-go-sdk.(*Wallet).NewDefaultSettingIdentity(...)
	/home/dau/workspace/go/src/github.com/ontio/ontology-go-sdk/wallet.go:472
github.com/ontio/ontology-go-sdk.TestOntId_RegIDWithPublicKey(0xc0000e0300)
	/home/dau/workspace/go/src/github.com/ontio/ontology-go-sdk/native_contract_test.go:12 +0x70
testing.tRunner(0xc0000e0300, 0xa5f0d0)
	/usr/local/go/src/testing/testing.go:865 +0xc0
created by testing.(*T).Run
	/usr/local/go/src/testing/testing.go:916 +0x357
FAIL	github.com/ontio/ontology-go-sdk	0.008s
?   	github.com/ontio/ontology-go-sdk/bip44	[no test files]
?   	github.com/ontio/ontology-go-sdk/client	[no test files]
?   	github.com/ontio/ontology-go-sdk/common	[no test files]
--- FAIL: TestOep4 (0.85s)
    oep4_test.go:59: open ../../wallet.json: no such file or directory
FAIL
FAIL	github.com/ontio/ontology-go-sdk/oep4	0.855s
?   	github.com/ontio/ontology-go-sdk/test	[no test files]
?   	github.com/ontio/ontology-go-sdk/utils	[no test files]

@lucas7788
Copy link
Collaborator

this error is due to the fact that some variables are not initialized. I will submit a pr to fix it. you can use go-sdk and ignore this error. and some testing interact with chain need you start ontology.
@dauTT

@lucas7788 lucas7788 mentioned this issue Aug 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants