Add unittest for newExecutionID
Signed-off-by: yxxhero <aiopsclub@163.com>
This commit is contained in:
parent
eee5f834c6
commit
45c983a0bb
|
|
@ -0,0 +1,13 @@
|
|||
package helmexec
|
||||
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/stretchr/testify/require"
|
||||
)
|
||||
|
||||
func TestNewExecutionID(t *testing.T) {
|
||||
idx := newExecutionID()
|
||||
idy := newExecutionID()
|
||||
require.NotEqual(t, idx, idy, "Execution IDs should be unique")
|
||||
}
|
||||
Loading…
Reference in New Issue