Skip to content

Commit

Permalink
add test
Browse files Browse the repository at this point in the history
Signed-off-by: wayner0628 <[email protected]>
  • Loading branch information
wayner0628 committed Nov 26, 2024
1 parent b3dca2a commit aa9ae72
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import (
"context"
"encoding/base64"
"reflect"
"strings"
"testing"
"time"

Expand Down Expand Up @@ -107,6 +108,12 @@ func TestFlyteCoPilotContainer(t *testing.T) {
assert.Error(t, err)
cfg.Memory = old
})

t.Run("sidecar-container-name-change", func(t *testing.T) {
c, err := FlyteCoPilotContainer(flyteSidecarContainerName, cfg, []string{"hello"})
assert.NoError(t, err)
assert.Equal(t, "uploader", strings.Split(c.Name, "-")[1])
})
}

func TestDownloadCommandArgs(t *testing.T) {
Expand Down

0 comments on commit aa9ae72

Please sign in to comment.