Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
ci(luavm): fix luavm test error
Browse files Browse the repository at this point in the history
  • Loading branch information
a-wing committed Jan 3, 2023
1 parent 1c15bb0 commit 5aa9143
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/luavm/worker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"time"

"sb.im/gosd/app/config"
lualib "sb.im/gosd/app/luavm/lua"
"sb.im/gosd/app/luavm/lib"
"sb.im/gosd/app/model"
"sb.im/gosd/app/storage"
"sb.im/gosd/app/store"
Expand Down Expand Up @@ -84,7 +84,7 @@ func TestLuaScript(t *testing.T) {

func luaScript(t *testing.T, name string) {
w := newWorker(t)
if script, err := lualib.LuaFile.ReadFile(name); err != nil {
if script, err := lib.File.ReadFile(name); err != nil {
t.Error(err)
} else {
if err := w.doRun(context.Background(), &model.Task{}, script); err != nil {
Expand Down

0 comments on commit 5aa9143

Please sign in to comment.