fix: bad ID in frontend
This commit is contained in:
parent
5ad307868e
commit
d66bcc4b63
|
@ -84,7 +84,7 @@ Window {
|
|||
anchors.horizontalCenter: parent.horizontalCenter
|
||||
|
||||
ButtonRounded {
|
||||
id: cancel
|
||||
id: sendAnyway
|
||||
onClicked : root.hide(true)
|
||||
height: Style.main.fontSize*2
|
||||
//width: Style.dialog.widthButton*1.3
|
||||
|
@ -93,7 +93,7 @@ Window {
|
|||
}
|
||||
|
||||
ButtonRounded {
|
||||
id: sendAnyway
|
||||
id: cancel
|
||||
onClicked : root.hide(false)
|
||||
height: Style.main.fontSize*2
|
||||
//width: Style.dialog.widthButton*1.3
|
||||
|
|
|
@ -82,3 +82,20 @@ func TestConfirmerMultipleRequestCalls(t *testing.T) {
|
|||
_, errAgain := req.Result()
|
||||
assert.Error(t, errAgain)
|
||||
}
|
||||
|
||||
func TestConfirmerMultipleSetResultCalls(t *testing.T) {
|
||||
c := New()
|
||||
|
||||
req := c.NewRequest(1 * time.Second)
|
||||
|
||||
go func() {
|
||||
assert.NoError(t, c.SetResult(req.ID(), true))
|
||||
assert.Error(t, c.SetResult(req.ID(), true))
|
||||
assert.Error(t, c.SetResult(req.ID(), true))
|
||||
assert.Error(t, c.SetResult(req.ID(), true))
|
||||
}()
|
||||
|
||||
res, err := req.Result()
|
||||
assert.NoError(t, err)
|
||||
assert.True(t, res)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue