Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for checkUpdatedAtChanged (0.23 sec)

  1. tests/update_test.go

    	var (
    		users = []*User{
    			GetUser("update-1", Config{}),
    			GetUser("update-2", Config{}),
    			GetUser("update-3", Config{}),
    		}
    		user          = users[1]
    		lastUpdatedAt time.Time
    	)
    
    	checkUpdatedAtChanged := func(name string, n time.Time) {
    		if n.UnixNano() == lastUpdatedAt.UnixNano() {
    			t.Errorf("%v: user's updated at should be changed, but got %v, was %v", name, n, lastUpdatedAt)
    		}
    		lastUpdatedAt = n
    	}
    
    Go
    - Registered: Sun Apr 28 09:35:09 GMT 2024
    - Last Modified: Mon Dec 04 03:50:58 GMT 2023
    - 30.3K bytes
    - Viewed (0)
Back to top