mirror of
https://github.com/ClusterCockpit/cc-backend
synced 2024-11-10 08:57:25 +01:00
Fix test: Change jobId conversion to fmt
This commit is contained in:
parent
270750a78d
commit
5bb5e5ed24
@ -42,7 +42,7 @@ func (r *jobResolver) ConcurrentJobs(ctx context.Context, obj *schema.Job) (*mod
|
|||||||
exc := int(obj.Exclusive)
|
exc := int(obj.Exclusive)
|
||||||
if exc != 1 {
|
if exc != 1 {
|
||||||
filter := []*model.JobFilter{}
|
filter := []*model.JobFilter{}
|
||||||
jid := string(obj.JobID)
|
jid := fmt.Sprint(obj.JobID)
|
||||||
jdu := int(obj.Duration)
|
jdu := int(obj.Duration)
|
||||||
filter = append(filter, &model.JobFilter{Exclusive: &exc})
|
filter = append(filter, &model.JobFilter{Exclusive: &exc})
|
||||||
filter = append(filter, &model.JobFilter{SharedNode: &model.StringInput{Contains: &obj.Resources[0].Hostname}})
|
filter = append(filter, &model.JobFilter{SharedNode: &model.StringInput{Contains: &obj.Resources[0].Hostname}})
|
||||||
|
Loading…
Reference in New Issue
Block a user