Skip to content

Commit

Permalink
update test file
Browse files Browse the repository at this point in the history
  • Loading branch information
lostluck committed Nov 7, 2022
1 parent 29a374c commit f7c8a52
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sdks/go/pkg/beam/options/resource/hint_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
func TestAcceleratorHint_MergeWith(t *testing.T) {
inner := acceleratorHint{value: "inner"}
outer := acceleratorHint{value: "outer"}
if got, want := inner.MergeWith(outer), inner; got != want {
if got, want := inner.MergeWithOuter(outer), inner; got != want {
t.Errorf("%v.MergeWith(%v) = %v, want %v", inner, outer, got, want)
}
}
Expand All @@ -47,10 +47,10 @@ func TestMinRamBytesHint_MergeWith(t *testing.T) {
low := minRamHint{value: 2}
high := minRamHint{value: 12e7}

if got, want := low.MergeWith(high), high; got != want {
if got, want := low.MergeWithOuter(high), high; got != want {
t.Errorf("%v.MergeWith(%v) = %v, want %v", low, high, got, want)
}
if got, want := high.MergeWith(low), high; got != want {
if got, want := high.MergeWithOuter(low), high; got != want {
t.Errorf("%v.MergeWith(%v) = %v, want %v", high, low, got, want)
}
}
Expand Down Expand Up @@ -149,7 +149,7 @@ func (customHint) Payload() []byte {
return []byte("custom")
}

func (h customHint) MergeWith(outer Hint) Hint {
func (h customHint) MergeWithOuter(outer Hint) Hint {
return h
}

Expand Down

0 comments on commit f7c8a52

Please sign in to comment.