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>2019-03-12 12:19:09 +0800
commit16e53029e830afa38a3158326bcefe71ca71869d (patch)
treed4fa878db621a45095f06c388a72249348fe0601
parentb5ec9669309981048e7306a8960f3cc6a87834f0 (diff)
downloaddexon-16e53029e830afa38a3158326bcefe71ca71869d.tar.gz
dexon-16e53029e830afa38a3158326bcefe71ca71869d.tar.zst
dexon-16e53029e830afa38a3158326bcefe71ca71869d.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)