Skip to content

build test failure: unable to find yaml config while it exists  #64

Description

@arcolife
[test]              /src:/src/..
[test]              warning: "./trueconsensus/dapps/..." matched no packages
[test]              warning: "./trueconsensus/db/..." matched no packages
[test]              warning: "./trueconsensus/evm/..." matched no packages
[test]              2018/08/01 01:35:30 Unable to read config file. Error:open /etc/truechain/tunables_bft.yaml: no such file or directory 
[test]              --- FAIL: TestConfig (0.00s)
[test]              	assertions.go:256: 
[test]              			Error Trace:	config_test.go:32
[test]              			Error:      	Expected nil, but got: &os.PathError{Op:"open", Path:"/etc/truechain/tunables_bft.yaml", Err:0x2}
[test]              			Test:       	TestConfig
[test]              	assertions.go:256: 
[test]              			Error Trace:	config_test.go:33
[test]              			Error:      	Should not be: 0
[test]              			Test:       	TestConfig
[test]              FAIL
[test]              FAIL	trueconsensus/fastchain	0.024s
[test]              ?   	trueconsensus/fastchain/proto	[no test files]
[test]              ?   	trueconsensus/minerva	[no test files]
[test]              ?   	trueconsensus/client	[no test files]
[test]              ?   	trueconsensus/common	[no test files]
[test]              ?   	trueconsensus/logging	[no test files]
[test]              ?   	trueconsensus/snailchain	[no test files]

while expected output should be: PASS

I've tested this locally, abstracting the logic away from the codebase and it works.

So there's something that has not caught my attention yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions