This commit is contained in:
Alex Dadgar 2018-08-28 10:32:03 -07:00
parent c394798106
commit cefa806519
1 changed files with 4 additions and 4 deletions

View File

@ -454,7 +454,7 @@ func TestDevicePlugin_Stats(t *testing.T) {
Type: DeviceTypeGPU,
Name: "foo",
InstanceStats: map[string]*DeviceStats{
"1": &DeviceStats{
"1": {
Summary: &StatValue{
IntNumeratorVal: 10,
IntDenominatorVal: 20,
@ -471,7 +471,7 @@ func TestDevicePlugin_Stats(t *testing.T) {
Type: DeviceTypeGPU,
Name: "foo",
InstanceStats: map[string]*DeviceStats{
"1": &DeviceStats{
"1": {
Summary: &StatValue{
FloatNumeratorVal: 10.0,
FloatDenominatorVal: 20.0,
@ -486,7 +486,7 @@ func TestDevicePlugin_Stats(t *testing.T) {
Type: DeviceTypeGPU,
Name: "bar",
InstanceStats: map[string]*DeviceStats{
"1": &DeviceStats{
"1": {
Summary: &StatValue{
StringVal: "foo",
Unit: "MB",
@ -500,7 +500,7 @@ func TestDevicePlugin_Stats(t *testing.T) {
Type: DeviceTypeGPU,
Name: "baz",
InstanceStats: map[string]*DeviceStats{
"1": &DeviceStats{
"1": {
Summary: &StatValue{
BoolVal: true,
Unit: "MB",