forked from Silverfish/proton-bridge
fix: bad ID in frontend
This commit is contained in:
@ -84,7 +84,7 @@ Window {
|
|||||||
anchors.horizontalCenter: parent.horizontalCenter
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
|
||||||
ButtonRounded {
|
ButtonRounded {
|
||||||
id: cancel
|
id: sendAnyway
|
||||||
onClicked : root.hide(true)
|
onClicked : root.hide(true)
|
||||||
height: Style.main.fontSize*2
|
height: Style.main.fontSize*2
|
||||||
//width: Style.dialog.widthButton*1.3
|
//width: Style.dialog.widthButton*1.3
|
||||||
@ -93,7 +93,7 @@ Window {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ButtonRounded {
|
ButtonRounded {
|
||||||
id: sendAnyway
|
id: cancel
|
||||||
onClicked : root.hide(false)
|
onClicked : root.hide(false)
|
||||||
height: Style.main.fontSize*2
|
height: Style.main.fontSize*2
|
||||||
//width: Style.dialog.widthButton*1.3
|
//width: Style.dialog.widthButton*1.3
|
||||||
|
|||||||
@ -82,3 +82,20 @@ func TestConfirmerMultipleRequestCalls(t *testing.T) {
|
|||||||
_, errAgain := req.Result()
|
_, errAgain := req.Result()
|
||||||
assert.Error(t, errAgain)
|
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)
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user