Merged in bugfix/cleanup (pull request #10)
Clean Up Testing and Linting * somescriptcleanup * mostgolangci * deplatest * imageversions * usingscratch * movedqueuefrtesting * finishedunittesting * linting * taskfilecontext
This commit is contained in:
@@ -17,7 +17,7 @@ import (
|
||||
|
||||
type queueConfig struct {
|
||||
Container *testcontainers.Container
|
||||
Config *queue.QueueConfig
|
||||
Config *queue.Config
|
||||
}
|
||||
|
||||
func createQueue(t *testing.T, ctx context.Context) (*queueConfig, func()) {
|
||||
@@ -32,7 +32,7 @@ func createQueue(t *testing.T, ctx context.Context) (*queueConfig, func()) {
|
||||
}
|
||||
|
||||
req := testcontainers.ContainerRequest{
|
||||
Image: "localstack/localstack:latest",
|
||||
Image: "localstack/localstack:4.0.3",
|
||||
Env: map[string]string{
|
||||
"AWS_ACCESS_KEY_ID": provider.Value.AccessKeyID,
|
||||
"AWS_SECRET_ACCESS_KEY": provider.Value.SecretAccessKey,
|
||||
@@ -82,11 +82,14 @@ func createQueue(t *testing.T, ctx context.Context) (*queueConfig, func()) {
|
||||
|
||||
return &queueConfig{
|
||||
Container: &container,
|
||||
Config: &queue.QueueConfig{
|
||||
Config: &queue.Config{
|
||||
Client: client,
|
||||
URL: *queueM.QueueUrl,
|
||||
},
|
||||
}, func() {
|
||||
container.Terminate(ctx)
|
||||
err := container.Terminate(ctx)
|
||||
if err != nil {
|
||||
t.Error(err)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user