diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-26 18:34:33 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:19 +0800 |
commit | 914b8f922685a62ed8177c8ffff0821ab1a34eee (patch) | |
tree | 044beac9020e2028576ecb7792402cb40785ebf7 | |
parent | 39e68f0f9f28b2166a509cd6f40e049b78fffe90 (diff) | |
download | go-tangerine-914b8f922685a62ed8177c8ffff0821ab1a34eee.tar.gz go-tangerine-914b8f922685a62ed8177c8ffff0821ab1a34eee.tar.zst go-tangerine-914b8f922685a62ed8177c8ffff0821ab1a34eee.zip |
node: fix tests
-rw-r--r-- | node/service_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node/service_test.go b/node/service_test.go index a7ae439e0..82b244b8e 100644 --- a/node/service_test.go +++ b/node/service_test.go @@ -38,7 +38,7 @@ func TestContextDatabases(t *testing.T) { t.Fatalf("non-created database already exists") } // Request the opening/creation of a database and ensure it persists to disk - ctx := &ServiceContext{config: &Config{Name: "unit-test", DataDir: dir}} + ctx := &ServiceContext{Config: &Config{Name: "unit-test", DataDir: dir}} db, err := ctx.OpenDatabase("persistent", 0, 0) if err != nil { t.Fatalf("failed to open persistent database: %v", err) @@ -49,7 +49,7 @@ func TestContextDatabases(t *testing.T) { t.Fatalf("persistent database doesn't exists: %v", err) } // Request th opening/creation of an ephemeral database and ensure it's not persisted - ctx = &ServiceContext{config: &Config{DataDir: ""}} + ctx = &ServiceContext{Config: &Config{DataDir: ""}} db, err = ctx.OpenDatabase("ephemeral", 0, 0) if err != nil { t.Fatalf("failed to open ephemeral database: %v", err) |