ldd/exec: raise timeout
All checks were successful
Test / Create distribution (push) Successful in 34s
Test / Sandbox (push) Successful in 2m14s
Test / Hakurei (push) Successful in 3m4s
Test / Sandbox (race detector) (push) Successful in 3m58s
Test / Hpkg (push) Successful in 3m58s
Test / Hakurei (race detector) (push) Successful in 6m9s
Test / Flake checks (push) Successful in 1m28s
All checks were successful
Test / Create distribution (push) Successful in 34s
Test / Sandbox (push) Successful in 2m14s
Test / Hakurei (push) Successful in 3m4s
Test / Sandbox (race detector) (push) Successful in 3m58s
Test / Hpkg (push) Successful in 3m58s
Test / Hakurei (race detector) (push) Successful in 6m9s
Test / Flake checks (push) Successful in 1m28s
This mostly helps with tests. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
f6f0cb56ae
commit
67ec82ae1b
10
ldd/exec.go
10
ldd/exec.go
@ -16,17 +16,17 @@ import (
|
|||||||
"hakurei.app/message"
|
"hakurei.app/message"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
|
||||||
lddName = "ldd"
|
|
||||||
lddTimeout = 2 * time.Second
|
|
||||||
)
|
|
||||||
|
|
||||||
var (
|
var (
|
||||||
msgStatic = []byte("Not a valid dynamic program")
|
msgStatic = []byte("Not a valid dynamic program")
|
||||||
msgStaticGlibc = []byte("not a dynamic executable")
|
msgStaticGlibc = []byte("not a dynamic executable")
|
||||||
)
|
)
|
||||||
|
|
||||||
func Exec(ctx context.Context, msg message.Msg, p string) ([]*Entry, error) {
|
func Exec(ctx context.Context, msg message.Msg, p string) ([]*Entry, error) {
|
||||||
|
const (
|
||||||
|
lddName = "ldd"
|
||||||
|
lddTimeout = 4 * time.Second
|
||||||
|
)
|
||||||
|
|
||||||
c, cancel := context.WithTimeout(ctx, lddTimeout)
|
c, cancel := context.WithTimeout(ctx, lddTimeout)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user