Skip to content

Commit

Permalink
Merge pull request #184 from atc0005/fix-test-metric-values
Browse files Browse the repository at this point in the history
Fix TestPerformanceDataIsNotDuplicated test
  • Loading branch information
atc0005 authored Jan 26, 2023
2 parents 0264554 + 09952d2 commit ab6f026
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions unexported_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,25 +77,25 @@ func TestPerformanceDataIsNotDuplicated(t *testing.T) {

// Collection of performance data with duplicate entries.
pd := []PerformanceData{
{
{ // first performance data entry
Label: "test1",
Value: "first performance data entry",
Value: "1",
},
{
{ // repeated
Label: "test1",
Value: "first performance data entry, repeated",
Value: "1",
},
{
{ // repeated with Label in all upper case
Label: "TEST1",
Value: "first performance data entry, repeated with all upper case",
Value: "1",
},
{
{ // repeated with Label in mixed case
Label: "teST1",
Value: "first performance data entry, repeated with mixed case",
Value: "1",
},
{
{ // first non-duplicate Label
Label: "test2",
Value: "not a duplicate",
Value: "1",
},
}

Expand All @@ -107,7 +107,7 @@ func TestPerformanceDataIsNotDuplicated(t *testing.T) {
// collection.
pd = append(pd, PerformanceData{
Label: "test1",
Value: "first performance data entry, repeated by itself",
Value: "1",
})

if err := plugin.AddPerfData(false, pd...); err != nil {
Expand Down

0 comments on commit ab6f026

Please sign in to comment.