feat: implement forget operation

This commit is contained in:
garethgeorge
2023-11-28 22:48:59 -08:00
parent 0c818bb945
commit ebccf3bc3b
23 changed files with 657 additions and 357 deletions

View File

@@ -5,6 +5,8 @@ import (
"reflect"
"testing"
"time"
v1 "github.com/garethgeorge/resticui/gen/go/v1"
)
type heapTestTask struct {
@@ -25,6 +27,10 @@ func (t *heapTestTask) Run(ctx context.Context) error {
return nil
}
func (t *heapTestTask) Cancel(withStatus v1.OperationStatus) error {
return nil
}
func TestTaskQueueOrdering(t *testing.T) {
h := taskQueue{}