@cryptotaxi247 / kubo / commits / 4a3368344

core tests: Stop assuming internals of Config

License: MIT Signed-off-by: Tommi Virtanen <tv@eagain.net>

Tommi Virtanen committed May 20, 2015 at 10:16 UTC 4a33683443703f3ef06c8ec3d1dc7bcffb8a792d
1 file changed -8
core/core_test.go
-8
@@ -16,9 +16,6 @@ func TestInitialization(t *testing.T) {
16 good := []*config.Config{
17 {
18 Identity: id,
19 - Datastore: config.Datastore{
20 - Type: "memory",
21 - },
19 Addresses: config.Addresses{
20 Swarm: []string{"/ip4/0.0.0.0/tcp/4001"},
21 API: "/ip4/127.0.0.1/tcp/8000",
@@ -27,10 +24,6 @@ func TestInitialization(t *testing.T) {
24
25 {
26 Identity: id,
30 - Datastore: config.Datastore{
31 - Type: "leveldb",
32 - Path: ".testdb",
33 - },
27 Addresses: config.Addresses{
28 Swarm: []string{"/ip4/0.0.0.0/tcp/4001"},
29 API: "/ip4/127.0.0.1/tcp/8000",
@@ -40,7 +33,6 @@ func TestInitialization(t *testing.T) {
33
34 bad := []*config.Config{
35 {},
43 - {Datastore: config.Datastore{Type: "memory"}},
36 }
37
38 for i, c := range good {