Skip to content

Commit

Permalink
Fix json tag typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Guillem committed Feb 20, 2024
1 parent d2e4cad commit 3f6a677
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions acceptance_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func TestAcceptance(t *testing.T) {
DestinationConfig: cfg,
BeforeTest: func(t *testing.T) {
queueName := setupQueueName(t, is)
cfg["queueName"] = queueName
cfg["queue.name"] = queueName
},
Skip: []string{
"TestSource_Configure_RequiredParams",
Expand Down Expand Up @@ -82,8 +82,8 @@ func TestAcceptance_TLS(t *testing.T) {
DestinationConfig: destCfg,
BeforeTest: func(t *testing.T) {
queueName := setupQueueNameTLS(t, is, tlsConfig)
sourceCfg["queueName"] = queueName
destCfg["queueName"] = queueName
sourceCfg["queue.name"] = queueName
destCfg["queue.name"] = queueName
},
Skip: []string{
"TestSource_Configure_RequiredParams",
Expand Down
2 changes: 1 addition & 1 deletion config.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func (cfg SourceConfig) toMap() map[string]string {

type QueueConfig struct {
// Name is the name of the queue to consume from / publish to
Name string `json:"queueName" validate:"required"`
Name string `json:"name" validate:"required"`

// Durable indicates if the queue will survive broker restarts.
Durable bool `json:"durable" default:"true"`
Expand Down

0 comments on commit 3f6a677

Please sign in to comment.