Skip to content

Commit

Permalink
Fix return type in tests after refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
preetapan committed Oct 30, 2018
1 parent 17344a7 commit f2b0277
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions command/agent/operator_endpoint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,10 @@ func TestOperator_SchedulerSetConfiguration(t *testing.T) {
},
}

var reply structs.SchedulerConfiguration
var reply structs.SchedulerConfigurationResponse
err = s.RPC("Operator.SchedulerGetConfiguration", &args, &reply)
require.Nil(err)
require.True(reply.PreemptionConfig.SystemSchedulerEnabled)
require.True(reply.SchedulerConfig.PreemptionConfig.SystemSchedulerEnabled)
})
}

Expand All @@ -320,11 +320,11 @@ func TestOperator_SchedulerCASConfiguration(t *testing.T) {
},
}

var reply structs.SchedulerConfiguration
var reply structs.SchedulerConfigurationResponse
if err := s.RPC("Operator.SchedulerGetConfiguration", &args, &reply); err != nil {
t.Fatalf("err: %v", err)
}
require.True(reply.PreemptionConfig.SystemSchedulerEnabled)
require.True(reply.SchedulerConfig.PreemptionConfig.SystemSchedulerEnabled)

// Create a CAS request, bad index
{
Expand Down Expand Up @@ -354,6 +354,6 @@ func TestOperator_SchedulerCASConfiguration(t *testing.T) {
if err := s.RPC("Operator.SchedulerGetConfiguration", &args, &reply); err != nil {
t.Fatalf("err: %v", err)
}
require.False(reply.PreemptionConfig.SystemSchedulerEnabled)
require.False(reply.SchedulerConfig.PreemptionConfig.SystemSchedulerEnabled)
})
}

0 comments on commit f2b0277

Please sign in to comment.