Skip to content
This repository was archived by the owner on Dec 30, 2020. It is now read-only.

Commit 434a385

Browse files
committed
Update test
1 parent 7d2e58d commit 434a385

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/red-box/api/slurm_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ func Test_mapSInfoToProtoInfo(t *testing.T) {
4141
NodeList: "node1",
4242
BatchHost: "host1",
4343
NumNodes: "2",
44+
ArrayJobID: "111",
4445
}
4546
pinfs, err := mapSInfoToProtoInfo([]*slurm.JobInfo{&testInfo})
4647
require.NoError(t, err)
@@ -65,6 +66,7 @@ func Test_mapSInfoToProtoInfo(t *testing.T) {
6566
require.EqualValues(t, testInfo.NodeList, pi.NodeList)
6667
require.EqualValues(t, testInfo.BatchHost, pi.BatchHost)
6768
require.EqualValues(t, testInfo.NumNodes, pi.NumNodes)
69+
require.EqualValues(t, testInfo.ArrayJobID, pi.ArrayId)
6870
}
6971

7072
func Test_mapSStepsToProtoSteps(t *testing.T) {

0 commit comments

Comments
 (0)