Permalink
Browse files

client: fix matchInstance in tests

  • Loading branch information...
1 parent 71cc227 commit 05757bd98e5f3c66bd7deef5f0c153889dd4658b @suyash suyash committed Aug 6, 2016
Showing with 2 additions and 2 deletions.
  1. +2 −2 client_test.go
View
@@ -366,8 +366,8 @@ func matchInstance(i *mmvdump.Instance, pi *pcpInstance, id *PCPInstanceDomain,
t.Errorf("expected indom offset to be %d, got %d", i.Indom, id.offset)
}
- if in := i.External[:len(pi.name)]; pi.name != string(in) {
- t.Errorf("expected instance name to be %v, got %v", pi.name, in)
+ if in := i.External[:len(pi.name.val)]; pi.name.val != string(in) {
+ t.Errorf("expected instance name to be %v, got %v", pi.name.val, in)
}
}

0 comments on commit 05757bd

Please sign in to comment.