fix:#7 fixed models lint

This commit is contained in:
Elmar Kresse
2024-06-10 20:43:12 +02:00
parent e325297530
commit 277edce302
3 changed files with 4 additions and 5 deletions

View File

@@ -24,7 +24,8 @@ import (
)
func TestEvents_Contains(t *testing.T) {
specificTime, _ := time.Parse("2020-01-01 12:00:00.000Z", "2020-01-01 12:00:00.000Z")
// parse time for JSONTime "2020-01-01 12:00:00.000Z"
specificTime, _ := time.Parse("2020-01-01T12:00:00.000Z", "2020-01-01 12:00:00.000Z")
specificJSONTime := JSONTime(specificTime)
type args struct {
@@ -72,7 +73,7 @@ func TestEvents_Contains(t *testing.T) {
func TestEvent_Equals(t *testing.T) {
specificTime, _ := time.Parse("2020-01-01 12:00:00.000Z", "2020-01-01 12:00:00.000Z")
specificTime, _ := time.Parse("2020-01-01T12:00:00.000Z", "2020-01-01 12:00:00.000Z")
specificJSONTime := JSONTime(specificTime)
type fields struct {