fix_trial
This commit is contained in:
parent
8cbad66b32
commit
c8f6341bc9
@ -27,7 +27,7 @@ func TestUpdateTrialPeriodWithIsTrial(t *testing.T) {
|
|||||||
endTime := now.Add(7 * 24 * time.Hour)
|
endTime := now.Add(7 * 24 * time.Hour)
|
||||||
|
|
||||||
trialPeriod := models.TrialPeriod{
|
trialPeriod := models.TrialPeriod{
|
||||||
CustomerID: "test-customer-001",
|
CustomerName: "test-customer-001",
|
||||||
StartTime: startTime,
|
StartTime: startTime,
|
||||||
EndTime: endTime,
|
EndTime: endTime,
|
||||||
IsTrial: true,
|
IsTrial: true,
|
||||||
@ -111,7 +111,7 @@ func TestUpdateTrialPeriodWithStartEndTime(t *testing.T) {
|
|||||||
endTime := now.Add(7 * 24 * time.Hour)
|
endTime := now.Add(7 * 24 * time.Hour)
|
||||||
|
|
||||||
trialPeriod := models.TrialPeriod{
|
trialPeriod := models.TrialPeriod{
|
||||||
CustomerID: "test-customer-002",
|
CustomerName: "test-customer-002",
|
||||||
StartTime: startTime,
|
StartTime: startTime,
|
||||||
EndTime: endTime,
|
EndTime: endTime,
|
||||||
IsTrial: true,
|
IsTrial: true,
|
||||||
@ -190,7 +190,7 @@ func TestGetAllTrialPeriods(t *testing.T) {
|
|||||||
now := time.Now()
|
now := time.Now()
|
||||||
for i := 0; i < 3; i++ {
|
for i := 0; i < 3; i++ {
|
||||||
trialPeriod := models.TrialPeriod{
|
trialPeriod := models.TrialPeriod{
|
||||||
CustomerID: "test-customer-bulk",
|
CustomerName: "test-customer-bulk",
|
||||||
StartTime: now.Add(time.Duration(i) * 24 * time.Hour),
|
StartTime: now.Add(time.Duration(i) * 24 * time.Hour),
|
||||||
EndTime: now.Add(time.Duration(i+7) * 24 * time.Hour),
|
EndTime: now.Add(time.Duration(i+7) * 24 * time.Hour),
|
||||||
IsTrial: i%2 == 0, // Alternate true/false
|
IsTrial: i%2 == 0, // Alternate true/false
|
||||||
@ -235,7 +235,7 @@ func TestDeleteTrialPeriod(t *testing.T) {
|
|||||||
// Create a trial period
|
// Create a trial period
|
||||||
now := time.Now()
|
now := time.Now()
|
||||||
trialPeriod := models.TrialPeriod{
|
trialPeriod := models.TrialPeriod{
|
||||||
CustomerID: "test-customer-delete",
|
CustomerName: "test-customer-delete",
|
||||||
StartTime: now,
|
StartTime: now,
|
||||||
EndTime: now.Add(7 * 24 * time.Hour),
|
EndTime: now.Add(7 * 24 * time.Hour),
|
||||||
IsTrial: true,
|
IsTrial: true,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user