mirror of
https://github.com/Luzifer/go-latestver.git
synced 2024-11-08 23:20:03 +00:00
Lint: Fix linter error
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
25bc26f128
commit
ca8ea96c7d
1 changed files with 2 additions and 3 deletions
|
@ -94,15 +94,14 @@ func Test_LogStorage(t *testing.T) {
|
|||
rt = time.Now()
|
||||
)
|
||||
|
||||
for _, le := range []LogEntry{
|
||||
for _, le := range []*LogEntry{
|
||||
{CatalogName: ce.Name, CatalogTag: ce.Tag, Timestamp: rt.Add(-3 * time.Hour), VersionFrom: "1.0.0", VersionTo: "1.1.0"},
|
||||
{CatalogName: ce.Name, CatalogTag: ce.Tag, Timestamp: rt.Add(-1 * time.Hour), VersionFrom: "1.2.0", VersionTo: "1.3.0"},
|
||||
{CatalogName: ce.Name, CatalogTag: ce.Tag, Timestamp: rt.Add(-2 * time.Hour), VersionFrom: "1.1.0", VersionTo: "1.2.0"},
|
||||
{CatalogName: "anotherapp", CatalogTag: ce.Tag, Timestamp: rt.Add(-2 * time.Hour), VersionFrom: "5.2.0", VersionTo: "5.2.1"},
|
||||
{CatalogName: "anotherapp", CatalogTag: ce.Tag, Timestamp: rt.Add(-1 * time.Hour), VersionFrom: "5.2.1", VersionTo: "6.0.0"},
|
||||
} {
|
||||
//#nosec G601 // Acceptable for test usage
|
||||
if err = dbc.Logs.Add(&le); err != nil {
|
||||
if err = dbc.Logs.Add(le); err != nil {
|
||||
t.Fatalf("unable to add log entry: %s", err)
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue