diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-11-26 18:34:33 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | 16e53029e830afa38a3158326bcefe71ca71869d (patch) | |
tree | d4fa878db621a45095f06c388a72249348fe0601 /node | |
parent | b5ec9669309981048e7306a8960f3cc6a87834f0 (diff) | |
download | dexon-16e53029e830afa38a3158326bcefe71ca71869d.tar.gz dexon-16e53029e830afa38a3158326bcefe71ca71869d.tar.zst dexon-16e53029e830afa38a3158326bcefe71ca71869d.zip |
node: fix tests
Diffstat (limited to 'node')
-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) |