Uh oh!
There was an error while loading. Please reload this page.
Add expiration date to vouchers - #477
Conversation
c7d4a22 to
60893ddCompare76b07ee to
67fd8ffCompare| err := os.WriteFile(configPath, []byte(config), 0644) | ||
| assert.NoError(t, err) | ||
| if !assert.NoError(t, err) { |
There was a problem hiding this comment.
assert changes the state of the testing object t, fa if I used assert.Error so every time the err = nil (meaning the test had bassed), the t object would report that the test failed
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
| ClusterContract: int(k8sContractID), | ||
| Master: master, | ||
| Workers: workers, | ||
| ExpirationDate: time.Now().Add(time.Duration(k8sDeployInput.Duration) * 30 * 24 * time.Hour).Truncate(24 * time.Hour), |
There was a problem hiding this comment.
there's no time.Month duration const to use it directly, max is time.Hour fa I use it to get a month
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
add expiration date to vouchers
Related Issues