aboutsummaryrefslogtreecommitdiffstats
path: root/node
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-04-09 21:32:54 +0800
commit0f595a79c871281c6a1bef2c9cafcf2e5e4105b9 (patch)
tree522b0be12df4f9e9b3db60ae2466843545f45b67 /node
parent19f4464a9eff68fe9aca863dafabf8a2cfd6bfcb (diff)
downloaddexon-0f595a79c871281c6a1bef2c9cafcf2e5e4105b9.tar
dexon-0f595a79c871281c6a1bef2c9cafcf2e5e4105b9.tar.gz
dexon-0f595a79c871281c6a1bef2c9cafcf2e5e4105b9.tar.bz2
dexon-0f595a79c871281c6a1bef2c9cafcf2e5e4105b9.tar.lz
dexon-0f595a79c871281c6a1bef2c9cafcf2e5e4105b9.tar.xz
dexon-0f595a79c871281c6a1bef2c9cafcf2e5e4105b9.tar.zst
dexon-0f595a79c871281c6a1bef2c9cafcf2e5e4105b9.zip
node: fix tests
Diffstat (limited to 'node')
-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)