@@ -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