Skip to content
Snippets Groups Projects
Commit 2c4a9ab7 authored by Tommi Virtanen's avatar Tommi Virtanen Committed by Jeromy Johnson
Browse files

fsrepo/serialize tests: Stop assuming internals of Config


License: MIT
Signed-off-by: default avatarTommi Virtanen <tv@eagain.net>
parent d8364462
Branches
No related tags found
1 merge request!1New
......@@ -9,9 +9,9 @@ import (
func TestConfig(t *testing.T) {
const filename = ".ipfsconfig"
const dsPath = "/path/to/datastore"
cfgWritten := new(config.Config)
cfgWritten.Datastore.Path = dsPath
cfgWritten.Identity.PeerID = "faketest"
err := WriteConfigFile(filename, cfgWritten)
if err != nil {
t.Error(err)
......@@ -21,7 +21,7 @@ func TestConfig(t *testing.T) {
t.Error(err)
return
}
if cfgWritten.Datastore.Path != cfgRead.Datastore.Path {
if cfgWritten.Identity.PeerID != cfgRead.Identity.PeerID {
t.Fail()
}
st, err := os.Stat(filename)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment