use new utility
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
"time"
|
||||||
|
|
||||||
"github.com/LazyBachelor/LazyPM/internal/service"
|
"github.com/LazyBachelor/LazyPM/internal/service"
|
||||||
"github.com/LazyBachelor/LazyPM/pkg/task"
|
"github.com/LazyBachelor/LazyPM/pkg/task"
|
||||||
@@ -99,5 +100,5 @@ func (t *CodingTask) Validate(ctx context.Context) (bool, error) {
|
|||||||
return false, fmt.Errorf("the function does not contain a return statement")
|
return false, fmt.Errorf("the function does not contain a return statement")
|
||||||
}
|
}
|
||||||
|
|
||||||
return true, nil
|
return EndTaskWithTimeout(nil, "Task completed!", 5*time.Second)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user