8000 Add fixes · arangodb/kube-arangodb@d41a79e · GitHub
[go: up one dir, main page]

Skip to content

Commit d41a79e

Browse files
committed
Add fixes
1 parent b3b43b5 commit d41a79e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

cmd/init_container_version_check_test.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ package cmd
2323
import (
2424
"encoding/json"
2525
"fmt"
26+
"github.com/arangodb/kube-arangodb/pkg/util/cli"
27+
"github.com/arangodb/kube-arangodb/pkg/util/errors"
2628
"os"
2729
"testing"
2830

@@ -57,7 +59,9 @@ func Test_extractVersionFromData(t *testing.T) {
5759
if valid {
5860
require.NoError(t, err)
5961
} else {
60-
ensureExitCode(t, err, cmdVersionCheckInitContainersInvalidVersionExitCode)
62+
var v cli.CommandExitCode
63+
require.True(t, errors.As(err, &v))
64+
require.EqualValues(t, v.ExitCode, cmdVersionCheckInitContainersInvalidVersionExitCode)
6165
}
6266
})
6367
}

pkg/util/pretty/marsh_table_test.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,14 @@ package pretty
2222

2323
import (
2424
"testing"
25-
26-
"github.com/stretchr/testify/require"
2725
)
2826

2927
func Test_MarshTable(t *testing.T) {
3028
type q struct {
3129
B string `table:"Table Name" table_align:"center"`
3230
}
3331

34-
z, err := NewTable[q]()
35-
require.NoError(t, err)
32+
z := NewTable[q]()
3633

3734
println(z.Add(q{
38 3C17 35
B: "TEST",

0 commit comments

Comments
 (0)
0