Skip to content

neonvm-controller: introduce unit tests (#935) #2868

neonvm-controller: introduce unit tests (#935)

neonvm-controller: introduce unit tests (#935) #2868

Triggered via push June 21, 2024 16:49
Status Failure
Total duration 2m 17s
Artifacts

test.yaml

on: push
Fit to window
Zoom out
Zoom in

Annotations

7 errors and 1 warning
tests: neonvm/controllers/vm_controller_unit_test.go#L61
cannot use lo.ToPtr(vmv1.MilliCPU(1000)) (value of type *"github.com/neondatabase/autoscaling/neonvm/apis/neonvm/v1".MilliCPU) as "github.com/neondatabase/autoscaling/neonvm/apis/neonvm/v1".MilliCPU value in struct literal
tests: neonvm/controllers/vm_controller_unit_test.go#L62
cannot use lo.ToPtr(vmv1.MilliCPU(2000)) (value of type *"github.com/neondatabase/autoscaling/neonvm/apis/neonvm/v1".MilliCPU) as "github.com/neondatabase/autoscaling/neonvm/apis/neonvm/v1".MilliCPU value in struct literal
tests: neonvm/controllers/vm_controller_unit_test.go#L63
cannot use lo.ToPtr(vmv1.MilliCPU(1500)) (value of type *"github.com/neondatabase/autoscaling/neonvm/apis/neonvm/v1".MilliCPU) as "github.com/neondatabase/autoscaling/neonvm/apis/neonvm/v1".MilliCPU value in struct literal
tests: neonvm/controllers/vm_controller_unit_test.go#L66
cannot use lo.ToPtr(int32(1)) (value of type *int32) as int32 value in struct literal
tests: neonvm/controllers/vm_controller_unit_test.go#L67
cannot use lo.ToPtr(int32(32)) (value of type *int32) as int32 value in struct literal
tests: neonvm/controllers/vm_controller_unit_test.go#L68
cannot use lo.ToPtr(int32(2)) (value of type *int32) as int32 value in struct literal
tests
Process completed with exit code 2.
tests
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: actions/checkout@v3, actions/setup-go@v4, technote-space/get-diff-action@v6. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.