Skip to content

Commit 52e7c94

Browse files
committed
enable all the tests
1 parent d56847b commit 52e7c94

File tree

1 file changed

+32
-32
lines changed

1 file changed

+32
-32
lines changed

framework/components/clnode/clnode_test.go

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -61,35 +61,35 @@ func TestComponentDockerNodeWithSharedDB(t *testing.T) {
6161
}
6262
}
6363

64-
//func TestComponentDockerNodeWithDB(t *testing.T) {
65-
// testCases := []testCase{
66-
// {
67-
// name: "basic use case",
68-
// input: &clnode.Input{
69-
// DbInput: &postgres.Input{
70-
// Image: "postgres:15.6",
71-
// Port: 15000,
72-
// VolumeName: "b",
73-
// },
74-
// Node: &clnode.NodeInput{
75-
// Image: "public.ecr.aws/chainlink/chainlink:v2.17.0",
76-
// Name: "cl-node-2",
77-
// },
78-
// },
79-
// assertion: func(t *testing.T, output *clnode.Output) {
80-
// checkBasicOutputs(t, output)
81-
// },
82-
// },
83-
// }
84-
//
85-
// for _, tc := range testCases {
86-
// err := framework.DefaultNetwork(&sync.Once{})
87-
// require.NoError(t, err)
88-
//
89-
// t.Run(tc.name, func(t *testing.T) {
90-
// output, err := clnode.NewNodeWithDB(tc.input)
91-
// require.NoError(t, err)
92-
// tc.assertion(t, output)
93-
// })
94-
// }
95-
//}
64+
func TestComponentDockerNodeWithDB(t *testing.T) {
65+
testCases := []testCase{
66+
{
67+
name: "basic use case",
68+
input: &clnode.Input{
69+
DbInput: &postgres.Input{
70+
Image: "postgres:15.6",
71+
Port: 15000,
72+
VolumeName: "b",
73+
},
74+
Node: &clnode.NodeInput{
75+
Image: "public.ecr.aws/chainlink/chainlink:v2.17.0",
76+
Name: "cl-node-2",
77+
},
78+
},
79+
assertion: func(t *testing.T, output *clnode.Output) {
80+
checkBasicOutputs(t, output)
81+
},
82+
},
83+
}
84+
85+
for _, tc := range testCases {
86+
err := framework.DefaultNetwork(&sync.Once{})
87+
require.NoError(t, err)
88+
89+
t.Run(tc.name, func(t *testing.T) {
90+
output, err := clnode.NewNodeWithDB(tc.input)
91+
require.NoError(t, err)
92+
tc.assertion(t, output)
93+
})
94+
}
95+
}

0 commit comments

Comments
 (0)