aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei-Ning Huang <w@dexon.org>2018-11-26 18:34:33 +0800
committerWei-Ning Huang <w@dexon.org>2018-12-19 20:54:27 +0800
commit9353a889cc34ba9999027b090d838b0deb90bc69 (patch)
tree2ca056f2ae42e29e1e8cd88fa0b247b5c956a2f7
parentbd950aff30d93d4b61ed61f31125928400133302 (diff)
downloaddexon-9353a889cc34ba9999027b090d838b0deb90bc69.tar.gz
dexon-9353a889cc34ba9999027b090d838b0deb90bc69.tar.zst
dexon-9353a889cc34ba9999027b090d838b0deb90bc69.zip
node: fix tests
-rw-r--r--node/service_test.go4
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)