Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TestPerformanceDataIsNotDuplicated test #184

Merged
merged 1 commit into from
Jan 26, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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